Note: You are currently viewing documentation for Moodle 3.8. Up-to-date documentation for the latest stable version of Moodle may be available here: Recycle bin.

Recycle bin: Difference between revisions

From MoodleDocs
(More features template)
(→‎Deleted courses: Update screenshots and text to better match Moodle 3.8 with Boost)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{More features}}
{{More features}}
{{New features}}
==What is the recycle bin?==
==What is the recycle bin?==
*The recycle bin allows teachers to retrieve course elements they have mistakenly deleted. It also allows those with relevant category permissions to restore deleted courses.
*The recycle bin allows teachers to retrieve course elements they have mistakenly deleted. It also allows those with relevant category permissions to restore deleted courses.
*If deleted items are not needed, they are automatically permanently deleted after seven days (or a time specified by the admin.)
*If deleted items are not needed, they are automatically permanently deleted after seven days (or a time specified by the admin.)
*The recycle bin was the first project funded by the [https://moodleassociation.org/  Moodle Users Association].
*The recycle bin was the first project funded by the [https://moodleassociation.org/  Moodle Users Association].  
 
 
{{MediaPlayer | url = https://www.youtube.com/watch?v=Wzieh7BYwfE | desc = Recycle bin in Moodle 3.1}}


==How does it work?==
==How does it work?==
Below is an example using an assignment within a course. The same process works for deleted courses in categories.
===Deleted activities===


1. Before a course teacher deletes an item, a reminder message appears:
1. Before a course teacher deletes an item, a reminder message appears:
Line 13: Line 15:
[[File:confirmdeletion.png]]
[[File:confirmdeletion.png]]


2. If you mistakenly click 'yes', all is not lost. Refresh the page and go to the course administration block. The link "Recycle bin" will be visible.
2. If you mistakenly click 'yes', all is not lost. After a short while, a 'Recycle bin' link will appear either via the gear menu or in the Administration block (depending upon your theme). (The delay in the 'Recycle bin' link appearing is because it requires the [[Cron|cron]] to run and the page to be refreshed.)


[[File:courseadminrecylebinlink.png]]
[[File:courseadminrecylebinlink.png]]
Line 20: Line 22:


[[File:recycle bin.png]]
[[File:recycle bin.png]]
===Deleted courses===
1. Browse to Site administration / Courses / Manage courses and categories.
2. Find the category the course was in before it was deleted.
3. Click on that category's ⚙ icon to open the Actions menu and click 'Recycle bin':
[[File:recyclebinrestorecourse1-39.png]]
4.Click 'Restore' to restore the deleted course:
[[File:recyclebinrestorecourse2-39.png]]
==Activity deletion in progress==
A message 'Activity deletion in progress...' is displayed whilst an activity is being deleted.
Note: The [[Cron|cron]] should run every minute to ensure that activities are deleted promptly.


==How is it set up?==
==How is it set up?==
*The recycle bin is available by default in all courses and categories, but the link in the administration block is only visible once something  has been deleted.
*The recycle bin is available by default in all courses and categories, but the link in the administration block is only visible once something  has been deleted.  
*Administrators can turn off the recycle bin and modify the settings from ''Site administration > Admin tools > Recycle bin''. Here they can decide how long an item or a course will remain available until it is permanently deleted.
*Administrators can modify the settings from "Recycle bin'' in the Site administration, and can decide how long an item or a course will remain available until it is permanently deleted, and make the recycle bin visible in the administration block even when empty. If preferred, the recycle bin can be disabled.
 
==See also==
 
* [https://moodle.org/mod/forum/discuss.php?d=364368 Can't remove Deletion in progress activities Moodle 3.4] forum discussion


[[es:Papelera de reciclaje]]
[[es:Papelera de reciclaje]]
[[de:Papierkorb]]
[[ja:ゴミ箱]]

Latest revision as of 19:14, 2 August 2020

What is the recycle bin?

  • The recycle bin allows teachers to retrieve course elements they have mistakenly deleted. It also allows those with relevant category permissions to restore deleted courses.
  • If deleted items are not needed, they are automatically permanently deleted after seven days (or a time specified by the admin.)
  • The recycle bin was the first project funded by the Moodle Users Association.


Recycle bin in Moodle 3.1

How does it work?

Deleted activities

1. Before a course teacher deletes an item, a reminder message appears:

confirmdeletion.png

2. If you mistakenly click 'yes', all is not lost. After a short while, a 'Recycle bin' link will appear either via the gear menu or in the Administration block (depending upon your theme). (The delay in the 'Recycle bin' link appearing is because it requires the cron to run and the page to be refreshed.)

courseadminrecylebinlink.png

3. Click the link and then click the 'restore' icon to retrieve the assignment or other item you accidentally deleted.

recycle bin.png

Deleted courses

1. Browse to Site administration / Courses / Manage courses and categories.

2. Find the category the course was in before it was deleted.

3. Click on that category's ⚙ icon to open the Actions menu and click 'Recycle bin':

recyclebinrestorecourse1-39.png

4.Click 'Restore' to restore the deleted course:

recyclebinrestorecourse2-39.png

Activity deletion in progress

A message 'Activity deletion in progress...' is displayed whilst an activity is being deleted.

Note: The cron should run every minute to ensure that activities are deleted promptly.

How is it set up?

  • The recycle bin is available by default in all courses and categories, but the link in the administration block is only visible once something has been deleted.
  • Administrators can modify the settings from "Recycle bin in the Site administration, and can decide how long an item or a course will remain available until it is permanently deleted, and make the recycle bin visible in the administration block even when empty. If preferred, the recycle bin can be disabled.

See also