Do unlinked files get auto-deleted?


#1

Say I drop an image in a post and some time later I decide to remove it by editing the post and erasing the markdown image link.

  • Does the file get deleted from the server after some time?
  • If not, is there any way I can do that manually as a regular user?

(Sam Saffron) #2

Yes it does… look in site settings:

clean up uploads: default true
Remove orphan unreferenced uploads to prevent illegal hosting. WARNING: you may want to back up of your /uploads directory before enabling this setting.

clean orphan uploads grace period hours : default 48
Grace period (in hours) before an orphan upload is removed.


#3

Great, that’s reassuring.