how to clean up the previous data from moodle

how to clean up the previous data from moodle

Abu Ali írta időpontban
Válaszok szám: 5

dear moodler,

i am using moodle 3.5 and I used to run cron file automatically in the control panel. i set the log record of 120 days from the current day to previous. log data is working fine but i noticed that my forum messages, result of quizzes are not deleted. my moodle is containing the record of all forum messages and quizzes from the last year also. please help me how can i delete the forum and quizzed data from the moodle to get the optimized performance of the site.


Értékelések átlaga: -
Válasz erre: Abu Ali

Re: how to clean up the previous data from moodle

William Stewart írta időpontban

Have you reset the courses that contain the forums, quizzes, etc? 

Válasz erre: William Stewart

Re: how to clean up the previous data from moodle

Abu Ali írta időpontban
Thanks dear William,

I have around 400 modules and as an administrator it is very difficult to reset all the courses or modules one by one. Do you have another method to clean up the quizzes or forums. Thanks

Válasz erre: Abu Ali

Re: how to clean up the previous data from moodle

Ken Task írta időpontban
Kép

Got a Linux server and command line access to server?   Can you install software?

If so, please see:

http://moosh-online.com/commands/

Look for the command for course-reset.   Could create a looping bash shell script that loops through course ID's and executes the moosh course-reset command with the parameters desired.

'spirit of sharing', Ken


Értékelések átlaga:Useful (1)
Válasz erre: Ken Task

Re: how to clean up the previous data from moodle

Abu Ali írta időpontban

Thanks Ken,

I would like to say thanks to Mr. ken , for providing me the help to solve the problem. i will try accordingly as you said and will come back in case of any trouble. 

thanks once again