XDM — Bulk DM Cleanup for X

Web DevApr 2026By Tinotenda Linton

A Vercel-ready utility that bulk-deletes recent X (Twitter) direct messages via OAuth 2.0 PKCE, grouped by conversation with batched deletes.

Next.jsReactOAuth

XDM answers a small but annoying question: how do you clean up years of direct messages on X without clicking forever?

What it does

  • Signs you in with OAuth 2.0 using PKCE — your credentials never touch the server
  • Groups your recent direct messages by conversation
  • Lets you multi-select conversations and delete in batches, respecting the API's 30-day deletion window

Deliberately small

The dependency list is three packages — next, react, react-dom. No database, no state to leak: the tool does one job, does it through the official API with the minimum scopes it needs, and gets out of the way. It deploys to Vercel in one click if you want to run your own.

Sometimes the best architecture is the one with almost nothing in it.