Uninstall Chef Workstation
Use these steps to remove Chef Workstation from Debian-based, RPM-based, Windows, or macOS systems.
Uninstall Chef Workstation on Debian-based distributions
To uninstall Chef Workstation, follow these steps:
Remove the package:
sudo apt-get purge chef-workstation-enterpriseVerify that the package has been removed:
dpkg -l chef-workstation-enterpriseThe command returns no output if the package is removed successfully.
Uninstall Chef Workstation on RPM-based distributions
To uninstall Chef Workstation, follow these steps:
Remove the package:
sudo dnf remove chef-workstation-enterpriseVerify that the package has been removed:
rpm -qa chef-workstation-enterpriseThe command returns no output if the package is removed successfully.
Uninstall Chef Workstation on Windows
To uninstall using the Windows UI:
- Open Settings > Apps > Installed apps.
- Search for Chef Workstation.
- Select Uninstall, then follow the on-screen prompts.
To uninstall from the command line, run the following command in an elevated PowerShell or Command Prompt session:
msiexec /x chef-workstation-enterprise-<VERSION>_x86_64.msi
Replace <VERSION> with the version number of the currently installed package.
Uninstall Chef Workstation on macOS
To uninstall Chef Workstation on macOS, run the uninstaller script:
sudo /opt/hab/chef-workstation/uninstall.sh
This script will:
- Remove all Chef Workstation binaries from
/usr/local/bin/ - Remove the installation directory
/opt/hab/ - Remove the PATH configuration from
/etc/paths.d/chef-workstation-enterprise - Remove the installation metadata from
/Library/Application Support/chef-workstation-enterprise/ - Forget the package receipt using
pkgutil