Do unlinked files get auto-deleted?

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?
1 Like

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.

7 Likes

Great, that’s reassuring.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.