You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✗✗✗ Last error: [401 Unauthorized] Please check that you have specified a valid Personal Access Token.
75
-
```
172
+
1. [Uninstall the current version](/uninstall/) using the steps for your platform.
173
+
1. Download and install the new version using the steps for your platform using the instruction on this page.
76
174
77
-
This indicates that Habitat CLI can't authenticate with Chef Habitat Builder due to an invalid personal access token.
175
+
## More information
78
176
79
-
-[Verify your token or create a new personal access token](https://docs.chef.io/habitat/builder_profile/#create-a-personal-access-token) in Chef Habitat Builder.
177
+
- [Chef Download API documentation](https://docs.chef.io/download/)
If you installed Chef InSpec as a Habitat package, use the [`hab pkg uninstall`](https://docs.chef.io/habitat/latest/reference/habitat_cli/#hab-pkg-uninstall) command:
13
+
14
+
```sh
15
+
sudo hab pkg uninstall chef/inspec
16
+
```
17
+
18
+
## Uninstall Chef InSpec on Debian-based distributions
19
+
20
+
To uninstall Chef InSpec, follow these steps:
21
+
22
+
1. Remove the package:
23
+
24
+
```sh
25
+
sudo apt-get remove inspec
26
+
```
27
+
28
+
1. Verify that the package has been removed:
29
+
30
+
```sh
31
+
dpkg -l inspec
32
+
```
33
+
34
+
The command returns no output if the package is removed successfully.
35
+
36
+
## Uninstall Chef InSpec on RPM-based distributions
37
+
38
+
To uninstall Chef InSpec, follow these steps:
39
+
40
+
1. Remove the package.
41
+
42
+
- Using `dnf`:
43
+
44
+
```sh
45
+
sudo dnf remove inspec
46
+
```
47
+
48
+
- For Amazon Linux 2 or systems using `yum`:
49
+
50
+
```sh
51
+
sudo yum remove inspec
52
+
```
53
+
54
+
1. Verify that the package has been removed:
55
+
56
+
```sh
57
+
rpm -qa inspec
58
+
```
59
+
60
+
The command returns no output if the package is removed successfully.
61
+
62
+
## Uninstall Chef InSpec on Windows
63
+
64
+
To uninstall using the Windows UI:
65
+
66
+
1. Open **Settings > Apps > Installed apps**.
67
+
1. Search for**Chef InSpec**.
68
+
1. Select **Uninstall**, then follow the on-screen prompts.
69
+
70
+
To uninstall from the command line, run the following commandin an elevated PowerShell or Command Prompt session:
0 commit comments