We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0361a8d commit 30d2674Copy full SHA for 30d2674
1 file changed
powershell/uninstall-step.ps1
@@ -1,4 +1,12 @@
1
echo ""
2
+$step_path = step.exe path --base
3
+if ( Test-Path -Path $step_path -PathType Container ) {
4
+ $Confirm = Read-Host "Remove user configuration directory '$step_path'? [Y/N]"
5
+ if ($Confirm -match 'y') {
6
+ echo "Removing user configuration directory: '$step_path'"
7
+ rm -R $step_path
8
+ }
9
+}
10
$install_dir = join-path $env:ProgramW6432 "Smallstep Labs"
11
echo "Uninstalling step: '$install_dir'"
12
rm -R $install_dir
@@ -11,4 +19,4 @@ Stop-Service ssh-agent
19
Set-Service -Name ssh-agent -StartupType Disabled
20
Get-Service ssh-agent | Select Name, Status, StartType
13
21
14
-echo "Done!"
22
+echo "Done!"
0 commit comments