William,
thanks for your fast answer.
I have the log store table set to keep records from 6 months, although it still uses 6gb of space its not a big deal for the infrastructure, the biggest problem i have are the files. But as there are 29312 courses and 6058805 files in the platform it would take to long if i started reviewing each course one by one. Please let me know if you come across a more massive way of doing this.
Once again thanks for your help!