A tdl extension for deleting Telegram messages.
tdl extension install wazk9595/tdl-deletetdl delete --url https://t.me/c/1234567890/42
tdl delete --url https://t.me/c/1234567890/42 --url https://t.me/c/1234567890/43tdl delete --from export.json
tdl delete --from export1.json --from export2.json# Channel or supergroup (numeric ID with -100 prefix)
tdl delete --chat -1001234567890 --id 42,43,44
# By username
tdl delete --chat @mychannel --id 42
# Saved Messages
tdl delete --chat me --id 73767tdl delete --from export.json --url https://t.me/c/1234567890/99Add --dry-run to parse the inputs and show the exact chat and message IDs that would be deleted. No delete request is sent, and the summary explicitly confirms that nothing was deleted.
tdl delete --from export.json --dry-run
tdl delete --chat me --id 73767 --dry-run| Flag | Description | Default |
|---|---|---|
--from |
tdl chat export JSON file (repeatable) | |
--url |
Message URL (repeatable) | |
--chat |
Chat username, numeric ID, or me |
|
--id |
Message IDs, comma-separated (used with --chat) |
|
--revoke |
Delete for all users | true |
--dry-run |
Preview the exact messages without deleting | false |
git clone https://github.com/wazk9595/tdl-delete.git
cd tdl-delete
go mod tidy
go build -o tdl-delete
tdl extension install --force ./tdl-delete