Mastodon: Media is not getting deleted after deleting post

Created on 21 Aug 2019  路  5Comments  路  Source: tootsuite/mastodon

Expected behaviour

Deleting a post should delete media

Actual behaviour

Deleting a post didn't delete media on the server's hard drive

Steps to reproduce the problem

Posting a post with media attached and deleting it afterwards

Specifications

Version 2.9.3+

wontfix

Most helpful comment

Wait, you're right, I forgot. Yes, media is not deleted when a post is deleted to support delete & redraft. Instead, the media becomes "unattached". Unattached media is cleared away after 1 day by the media cleanup scheduler.

All 5 comments

Are you certain it's not just cached by nginx or cloudflare?

Are you certain it's not just cached by nginx or cloudflare?

Nothing is being cached, I cleared everything out and even ran the media_cleanup_scheduler (or whatever its being called) task in Sidekiq. Also masto.host's Nginx should be configured not to hardly cache files.

Wait, you're right, I forgot. Yes, media is not deleted when a post is deleted to support delete & redraft. Instead, the media becomes "unattached". Unattached media is cleared away after 1 day by the media cleanup scheduler.

Related: #11638

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sorin-davidoi picture sorin-davidoi  路  3Comments

thomaskuntzz picture thomaskuntzz  路  3Comments

Lewiscowles1986 picture Lewiscowles1986  路  3Comments

cwebber picture cwebber  路  3Comments

hidrarga picture hidrarga  路  3Comments