Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pavelvais/slack-dms-cleaner

It provides a simple JavaScript script designed to streamline the deletion of Slack direct messages
https://github.com/pavelvais/slack-dms-cleaner

delete directmessage messaging slack

Last synced: about 1 month ago
JSON representation

It provides a simple JavaScript script designed to streamline the deletion of Slack direct messages

Awesome Lists containing this project

README

        

# Slack Direct Message Deletion Script

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.

## Key Features

- **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.

## How to Use

### Step 1: Open the Slack Web Client

Ensure you are using Slack in a web browser (e.g., Chrome, Edge, Firefox).

### Step 2: Activate the Developer Console

#### Windows:
- Press `Ctrl+Shift+I` or `F12` to open Developer Tools.

#### Mac:
- Press `Cmd+Option+I` to open Developer Tools.

### Important Note for First-Time Users:
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.

### Step 3: Paste and Run the Script

1. Copy the script from [index.js](index.js).
2. Open the **Console** tab in Developer Tools.
3. Paste the script and press `Enter` to activate it.

### Step 4: Deleting Messages

1. Click on a message or attachment that you want to delete.
2. The script will trigger and automatically delete the message.

### Limitations

- **You Can Only Delete Your Own Messages**: The script only works for messages sent by your account.

## Disclaimer

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.