Uninstall

In order to develop on the next-generation platform, your workspace must be on a paid plan.

All good things come to an end! If you need to uninstall the Slack CLI, follow the instructions below.

✨ Just need to uninstall an app? Refer to uninstall an app from your workspace.

Uninstalling the CLI

Run the following from your terminal window:

$ rm -rf ~/.slack  # Delete the download binary
$ rm /usr/local/bin/slack  # Delete the command alias (replacing `slack` with a command name)

Run the following commands in PowerShell:

The command binary is stored in $HOME\AppData\Local\slack-cli or $HOME\.slack-cli. This binary can be removed with the following command:

rd -r $HOME\AppData\Local\slack-cli

where $HOME is substituted for the full path, e.g. C:\Users\<your_username>.

PowerShell is required for uninstalling the Slack CLI from Windows machines; an alternative shell will not work.

Removing the command from the $env:path can be done with the following command:

$env:Path = ($env:Path -split ';' -ne '$HOME\AppData\Local\slack-cli\bin') -join ';'

Removing the command from the system path can be done with the following command:

[System.Environment]::SetEnvironmentVariable('Path', (([System.Environment]::GetEnvironmentVariable('Path', [System.EnvironmentVariableTarget]::User) -split ';' -ne '$HOME\AppData\Local\slack-cli\bin') -join ';'), [System.EnvironmentVariableTarget]::User)

Finally, general configurations can be removed with the following command:

rd -r $HOME\.slack

To check that uninstallation was successful, run the following commands and verify that you receive an error β€” in this case, that's a good thing!

slack version
echo $env:path

These instructions will uninstall the Slack CLI, but not its dependencies. Follow these instructions to uninstall Deno.

Until next time!


Have 2 minutes to provide some feedback?

We'd love to hear about your experience building modular Slack apps. Please complete our short survey so we can use your feedback to improve.