Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: Cleanup.

Cleanup: Difference between revisions

From MoodleDocs
(→‎Delete unconfirmed users after: rewording and removing reference to MDL-54106 as the bug is fixed in 3.3.4)
 
(17 intermediate revisions by 9 users not shown)
Line 1: Line 1:
Location: ''Administration > Server > Cleanup''
{{Server settings}}
 
An administrator can limit the size of certain tables in the database by setting appropriate options in ''Administration > Site administration > Server > Cleanup''.
 
==Unsubscribe users from courses after==
 
To help keep lists of participants up-to-date, you can tell Moodle to unenrol any user (student or teacher) who hasn't logged in for a certain amount of time. Be sure to keep this time long enough so users aren't unenrolled accidentally while they still need access to the course.


==Delete unconfirmed users after==
==Delete unconfirmed users after==


If you're using [[Email-based self-registration]] users must confirm their account within a certain time-frame. Once the time set here has passed, any account that hasn't been confirmed will be deleted. 7 days is a good setting.
For certain authentication methods such as [[Email-based self-registration]] users must confirm their account (complete the email registration process) within a certain time-frame. Once the time set here has passed, any account that hasn't been confirmed will be deleted. The default is 7 days.


==Delete incomplete users after==
==Delete incomplete users after==


{{Moodle 1.9}}In Moodle 1.9.2 onwards, the period after which old not-fully-set-up accounts are deleted may be set (from 1 day to never).
Once users have confirmed their account, they must complete their profile within the time interval set here.


(What is the definition of a "not-fully-set-up account"? What action criteria needs to be met for an account to be fully-set-up?)
A ''complete profile'' is one where the following fields have been filled in (are not empty):
*First name
*Last name
*Email address
Just as a reference, given that the firstname, lastname and email are required fields of the [[Upload users]] module, any account created this way is automatically a complete account.


==Keep logs for==
==Disable grade history==


Moodle keeps extensive logs of user activity. Eventually, however, the logs will become so large that they begin to clog your server. Limiting the length of time logs are kept for will reduce database table size. Generally, a year is enough time to keep logs for.
History tracking of changes in grades-related tables may be disabled by checking the ''disablegradehistory'' box.


==Disable grade history==
==Grade history lifetime==


{{Moodle 1.9}}In Moodle 1.9 onwards, history tracking of changes in grades-related tables may be disabled by checking the ''disablegradehistory'' box.
The length of time that the history of changes in grade-related tables is kept may be set (from 30 days to never).


==Grade history lifetime==


In Moodle 1.9 onwards, the length of time that the history of changes in grade-related tables is kept may be set (from 30 days to never).
Note for users who have upgraded from earlier versions: The setting 'Keep logs for' is now located in the [[Logging|log store settings]].


==See also==
==See also==


*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=87795 How do I prune mdl_log table?] forum discussion
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=87795 How do I prune mdl_log table?] forum discussion
 
*[https://youtu.be/gPbNXWiA__E MoodleBites for Administrators - Server settings] YouTube movie
[[Category:Administrator]]


[[eu:Garbiketa]]
[[eu:Garbiketa]]
[[fr:Nettoyage]]
[[fr:Nettoyage]]
[[ja:クリーンアップ]]
[[de:Aufräumarbeiten]]
[[es:Limpieza]]

Latest revision as of 17:26, 3 January 2018

An administrator can limit the size of certain tables in the database by setting appropriate options in Administration > Site administration > Server > Cleanup.

Delete unconfirmed users after

For certain authentication methods such as Email-based self-registration users must confirm their account (complete the email registration process) within a certain time-frame. Once the time set here has passed, any account that hasn't been confirmed will be deleted. The default is 7 days.

Delete incomplete users after

Once users have confirmed their account, they must complete their profile within the time interval set here.

A complete profile is one where the following fields have been filled in (are not empty):

  • First name
  • Last name
  • Email address

Just as a reference, given that the firstname, lastname and email are required fields of the Upload users module, any account created this way is automatically a complete account.

Disable grade history

History tracking of changes in grades-related tables may be disabled by checking the disablegradehistory box.

Grade history lifetime

The length of time that the history of changes in grade-related tables is kept may be set (from 30 days to never).


Note for users who have upgraded from earlier versions: The setting 'Keep logs for' is now located in the log store settings.

See also