Uninstall Chef InSpec
You can uninstall Chef InSpec using the steps below that are appropriate for the method of Chef InSpec installation.
macOS
Homebrew
Use the following destructive command to remove the Chef InSpec standalone Homebrew package:
brew cask uninstall inspec
CLI
Use the following destructive command in your terminal to remove the Chef InSpec package:
sudo rm -rf /opt/inspec
Windows
Installer
Use Add / Remove Programs to remove Chef InSpec.
Linux
CLI
Use the following destructive commands to uninstall Chef InSpec from Linux-based platforms.
For Ubuntu, use the following destructive command to uninstall Chef InSpec:
sudo dpkg -P inspec
For Red Hat Enterprise Linux, use the following destructive command to uninstall Chef InSpec:
sudo rpm -e inspec
For SUSE Linux Enterprise Server, use the following destructive command to uninstall Chef InSpec:
sudo zypper remove inspec