Copy the provided .env.sample
file and rename it accordingly to match each of your Slack Workspaces.
$ cp config/.env.sample config/{default,personal,work}.env
Deletes Slack public & private channel and chat messages.
*nbsp; Please Note:
TheCHANNEL_ID
is a hashed value that maps to the vanity name of each channel or user that you see inside the application.
Be sure to store theCHANNEL_ID
value somewhere. We're going to pass it in as a parameter when we run our script.
*nbsp;
- Open a web browser & navigate to your Slack Workspace.
- For Example:
https://yourworkspace.slack.com/
- For Example:
- Select the channel or chat message from the left-sidebar.
- The
CHANNEL_ID
hash can be found in the URL for each individual channel or chat message.- For Example:
https://yourworkspace.slack.com/messages/CHANNEL_ID/
- For Example:
$ WORKSPACE=DEFAULT node delete-slack-messages.js <CHANNEL_ID>
$ WORKSPACE=PERSONAL node delete-slack-messages.js <CHANNEL_ID>
$ WORKSPACE=GOCANVAS node delete-slack-messages.js <CHANNEL_ID>
Copyright © 2019 Bruce Bentley under the MIT License.