This script streamlines the process of deleting your own messages in Slack by automating the necessary steps in the web client. It requires no admin privileges, no API access, and works directly in the browser's developer console.
- No Admin Privileges Required: Works entirely within the Slack web client.
- No API Access Needed: No API tokens or special configurations are required.
- Simple and Lightweight: Copy, paste, and run the script directly in your browser.
Ensure you are using Slack in a web browser (e.g., Chrome, Edge, Firefox).
- Press
Ctrl+Shift+I
orF12
to open Developer Tools.
- Press
Cmd+Option+I
to open Developer Tools.
When you open the console for the first time, your browser may display a warning about pasting scripts. Read and accept the warning to proceed.
- Copy the script from index.js.
- Open the Console tab in Developer Tools.
- Paste the script and press
Enter
to activate it.
- Click on a message or attachment that you want to delete.
- The script will trigger and automatically delete the message.
- You Can Only Delete Your Own Messages: The script only works for messages sent by your account.
This script is for personal use and development purposes only. Use it responsibly and ensure compliance with Slack's terms of service. The author assumes no liability for misuse or any consequences arising from the use of this script.