How to automatically delete DMs and old messages on Twitter?

To say that Twitter is currently in trouble is an understatement. Since Elon Musk took over the platform, a good portion of employees have been laid off, some tools have stopped working and the future of the site is more uncertain than ever. This raises important questions about the security of your account data as many dedicated teams have left the platform.

Even before Musk’s hiring, Twitter’s data security practices left something to be desired, as evidenced by the testimony of respected engineer Peiter Mudge Zatko, who was fired earlier this year.

If you fear for the security of your private messages or your old tweets, there is a very practical tool to delete them automatically: Semiphemeral.

What is Semiphemeral?

Semiphemeral presents itself as a tool that “protects your privacy by allowing you to easily and automatically delete years of old tweets”. Basically, the site cleans up your history by deleting your old tweets or old private messages.

This is not only very useful if you have been on the social network for many years and do not have to assume what you posted 10 years ago, but also to protect your personal data. With your Twitter data potentially exposed to hacks or, worse, Elon Musk’s mood swings, it helps to leave as little data as possible on the platform.

In its data privacy policy, Semiphemeral ensures that the site “avoid collecting more information than necessary” and the source code of the tool is available on GitHub.

Connecting Semiphemeral to the Twitter user account and starting deleting your old posts is a piece of cake.

  • Log in to and click on Login with Twitter
  • Once your account is connected, you will arrive at your dashboard: click on the Settings tab
  • Configure the tweets you want to automatically delete and the ones you want to keep (based on seniority, number of likes, RTs, etc.)
  • Press Save
  • Let Semiphemeral download your Twitter archive
  • This step may take a while if you have a lot of messages. The service will send you a private message once the archive has been downloaded
  • Click on the Dashboard tab, then on Start Semiphemeral
  • That’s it, tweets matching your selection criteria will start to be deleted

Direct messages on Twitter may contain more sensitive information due to their nature a priori private. If you’re concerned about your personal data, it’s a good idea to clean that up as well. Good news, Semiphemeral has an option for that.

  • Log in to and click on Login with Twitter
  • Once your account is connected, you will come to your dashboard, click on the Settings tab
  • Click Give Semiphemeral access to my DMs
  • Once the app is authorized, click on Delete old direct messages and specify the time after which you want your DMs to disappear
  • The maximum number is 29 days, as Twitter does not grant access to DMs beyond that. Don’t panic, there is a method to delete older messages, we’ll get back to it
  • Press Save
  • Click on the Dashboard tab, then on Start Semiphemeral
  • Your DMs will start deleting once they exceed the specified time

If you want to delete DMs older than 30 days, it’s possible with a little hacking.

  • appointment on Twitter to download an archive of your data
  • It may take a few hours or even days, sorry
  • Once your archive has been recovered, locate the files direct-messages.js or direct-messages-group.js
  • Go back to Semiphemeral and click on the DMs tab and upload the files in the dedicated interface
  • Click Delete these old DMs

Lo and behold, your private messages will gradually disappear.

If you want to delete your tweets for personal reasons or to avoid involvement in Elon Musk’s new business, you are armed! If you wish, you can make a donation (monthly or one time) to the platform from the dedicated page.

Advertising, your content continues below

Leave a Reply

Your email address will not be published. Required fields are marked *