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
m (removing new feature template)
(copying changes from 33 docs)
Line 3: Line 3:
*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]. Watch the HQ screencast [https://www.youtube.com/watch?v=Wzieh7BYwfE Recycle bin]
*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?==
Line 12: Line 15:
[[File:confirmdeletion.png]]
[[File:confirmdeletion.png]]


2. If you mistakenly click 'yes', all is not lost. Turn editing off or effectively reload the course page or navigate elsewhere in the course then 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 22: Line 25:
===Deleted courses===
===Deleted courses===
1. Access the category that the course was in before you accidentally deleted it.
1. Access the category that the course was in before you accidentally deleted it.
2. From the category administration block, click 'Recycle bin'
2. From the category administration block, click 'Recycle bin'.


[[File:recyclebinrestorecourse1.png]]
[[File:recyclebinrestorecourse1.png]]
Line 32: Line 35:
==Activity deletion in progress==
==Activity deletion in progress==


In Moodle 3.2 onwards, a message 'Activity deletion in progress...' is displayed whilst an activity is being deleted.
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.
Note: The [[Cron|cron]] should run every minute to ensure that activities are deleted promptly.

Revision as of 15:24, 4 December 2017

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. Access the category that the course was in before you accidentally deleted it. 2. From the category administration block, click 'Recycle bin'.

recyclebinrestorecourse1.png

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

recyclebinrestorecourse2.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.