This project helps to you delete whole slack messages that you selected channel automatically
Firstly you should goto the Settings & Administration > Workspace settings in your slack app.
Step 1 - Create a new slack app
Step 2 - Give the slack application name that you want
Step 3 - Goto the OAuth & Permissions page from the left menu
Step 4 - Scroll to the Scopes section, we'll use User Token Scopes in this case
Step 5 - Add all these roles using Add an OAuth Scope button
Step 6 - Scroll to OAuth Tokens for Your Workspace section and then click to the install button
Step 7 - Authorize your new slack app to your workspace
Step 8 - Click to copy User OAuth Token
Step 9 - and paste in app.js
Also you can ses all details in here
How can I run application ?
in the route directory, you just need to run the following commands and that's it!
yarn //to setup slack api package
node app . js // you should see 'Getting started to clear your slack messages' message