Uninstall Chef Workstation
This guide explains how to uninstall Chef Workstation from supported Debian-based, RPM-based, Windows, and 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
apt-getpurged the package:dpkg-query -W -f='${db:Status-Status}\n' chef-workstation-enterpriseIf the purge succeeds, the command returns a
dpkg-query: no packages found matching chef-workstation-enterprise.
Uninstall Chef Workstation on RPM-based distributions
To uninstall Chef Workstation, follow these steps:
Remove the package:
sudo dnf remove chef-workstation-enterpriseVerify that
dnfremoved the package:rpm -q chef-workstation-enterpriseIf the removal succeeds,
rpm -qfinds no installed package.
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
The script removes the following:
- Chef Workstation binaries from
/usr/local/bin/ - The installation directory
/opt/hab/ - The PATH configuration from
/etc/paths.d/chef-workstation-enterprise - The installation metadata from
/Library/Application Support/chef-workstation-enterprise/ - The package receipt through
pkgutil