{"repo":"bboe/deslackify","free":true,"listed":false,"github":"https://github.com/bboe/deslackify","clone":"git clone https://github.com/bboe/deslackify.git","description":"A program to delete old slack messages.","language":"Python","stars":21,"topics":["slack","slack-api","python","automation","cli","message-cleanup"],"license":"BSD-2-Clause","category":"chat-messaging","readme_excerpt":"deslackify A tool to remove your own slack messages. deslackify can only delete messages that you sent. The token you provide authenticates as your own account, so it cannot remove messages authored by other users. deslackify supports Python 3.10 through 3.14. Installation Install the deslackify command with uv: Obtaining credentials deslackify is meant to be run without the overhead of creating a Slack app. It authenticates as your own browser session, using two values copied from your logged-in Slack web client ( https://app.slack.com ): 1. Open your workspace in a browser and open the developer tools. 2. Token — in the Console , run: It begins with xoxc- . This is the TOKEN below. 3. Cookie — in Application → Cookies → https://app.slack.com , copy the value of the d cookie. It begins with xoxd- . This is the COOKIE below. ( deslackify re-encodes it as needed, so it does not matter whether the value is shown URL-encoded or not.) The token and cookie must come from the same logged-in session. Alternative: a Slack app token If you are able to create a Slack app, you can authenticate with a user OAuth token instead of a browser session. It is more stable — it does not expire when you sign out — and needs no --cookie : 1. Create a new app at https://api.slack.com/apps (\"From scratch\"). 2. Under OAuth & Permissions , add the User Token Scopes search:read and chat:write . 3. Click Install to Workspace and authorize the app. 4. Copy the User OAuth Token (it begins with xoxp- ); us","default_branch":null,"files":null,"tree":[],"storefront":"/r/bboe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bboe/deslackify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}