Deleting posts automatically in Mastodon after a certain time period

Posts in Mastodon can be set to automatically self-destruct after a certain time period, with exceptions made for posts you want to keep. Here’s how to do it:

  1. Log in through your server’s website or the web app
  2. Go to Preferences > Automated post deletion (on mobile web click ⚙️, then ☰, then Automated post deletion)
  3. Choose the Age threshold to set how long posts are around before they’re deleted. This can be from 1 week to 2 years.
  4. Set the exceptions for posts you want to keep
  5. Tick the box at the top marked Automatically delete old posts
  6. Click the Save changes button

What if I change my mind? How do I stop posts being deleted automatically?

If you want to stop deleting posts automatically, UN-tick the box marked Automatically delete old posts, and click the Save changes button.

Will stopping the auto-deletion bring back posts that are already deleted?

No. Once a post is deleted it is gone. Be sure you want to use auto-deletion before you activate it.

What happens to discussions based on my posts?

If you delete a post that other people replied to, the replies to your post will be orphaned, and it will become impossible to discover or browse such discussions. If you want to keep certain discussions you’ve started in existence, make sure you include your posts from that discussion in the list of exceptions (see Step 4 in the instructions at the top of the page).

What happens to links to my posts?

If you delete a post, any links to that post will immediately be broken and will just show an error message. If you want to keep a post, make sure it is covered by the exceptions list in Step 4 of the instructions.

I activated auto-deletion but it hasn’t deleted posts that are way past the threshold. What’s going on?

If servers are busy, they create queues of tasks to work through. Automated deletion tends to go at the back of the queue, so it may take longer to happen than other tasks. If the settings are correct and it’s way past the deadline for the deletions to happen, ask your server’s admin for advice.

How does this affect server running costs?

When this feature is discussed, the issue of server running costs is often raised:

  • On the one hand, automated stuff always adds extra tasks for the server to carry out. Servers are only capable of doing a certain amount of tasks at once, and expanding this capability costs money.
  • On the other hand, deleting posts (and especially attachments like images or videos) would mean the server doesn’t have to store as much data, which saves money on storage costs. It would also reduce storage costs for any servers that have federated the posts being deleted.

You would have to speak to your server’s admin to find out exactly how it affects their setup, as different servers may have different resources available.

I asked a couple of very large server admins for their thoughts on how this balances out. Both of them said the added tasks were insignificant compared to everything else the servers have to do. Both of them also said deleting posts (especially posts with media attachments) saves storage, but one of them added that there may be fees to be paid if the deletions happen for very recent posts. On their server, it would be cheaper to only delete posts more than 90 days old, and leave any newer posts intact.

↩ Back to the front page