Deleting files from private space

Deleting files from private space

by Mahmood Naderan -
Number of replies: 2

Hi

If I delete some files from the private space, are they gone to the recycle bin? Or they are deleted immediately?


Average of ratings: -
In reply to Mahmood Naderan

Re: Deleting files from private space

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi,

Only deleted activities in a course or deleted courses end up in the recycle bin. If you delete files from your private space, they are gone!

In reply to Mahmood Naderan

Re: Deleting files from private space

by Ken Task -
Picture of Particularly helpful Moodlers

One way to find out where they go ...

delete 1 file (jot down it's humanly recognizable filename) and save.

Then go to mysql client and query mdl_files for filename=whateveryoudelted to see if it's now in trashdir.

OR query for contenthash and from cli in moodledata/filedir find contenthash.   Then do same for moodledata/trashdir/

'SoS', Ken