# Delete all messages in a Discord channel or DM
**TLDR:** Watch this [40s video instructions](https://imgur.com/a/vYmDNSZ)
1. Select and Copy this script: [deleteDiscordMessages.js](https://raw.githubusercontent.com/victornpb/undiscord/master/deleteDiscordMessages.user.js)
2. Open [Discord](https://discord.com/channels/@me) in a __browser__ (like Chrome, Safari or Firefox)
and go to a #Channel or a DM conversation
3. Open DevTools pressing:
- Chrome (Windows, Linux, Chrome OS):
F12 or Control+Shift+J
- Firefox (Windows, Linux, Chrome OS):
F12 or Control+Shift+K
- Chrome (Mac):
Command+Option+J
- Safari (Mac): Command+Option+C
4. Paste (Ctrl+V) the script in the "Console" tab, then press ENTER, a popup window will open;
5. Click on the blue buttons near **Authorization**, **Author** and **Channel**.
*(Optional: getting [authToken](./help/authToken.md), [authorId](./help/authorId.md), [channelId](./help/channelId.md) and [messageId](./help/messageId.md) manually)*
6. Click the **START** button.
