Can't uninstall ActivePerl 5.32

That means you need to use the “exit” command to leave the current virtual environment.

having the same issue as @icunsafe when running state clean uninstall

tried running state clean and then state clean uninstall but the same error occurs:

Something Went Wrong
────────────────────
 x Failed to remove PATH entries from environment
 x Failed to remove all State Tool files in installation directory C:\Users\User\AppData\Local\ActiveState\StateTool\release

here is the verbose response for state clean uninstall:

(PID 8640) [DEBUG Nov 22 19:53:50.700866200, exeutils.go:149] Executing: C:\Users\[LOCALUSER]\AppData\Local\ActiveState\StateTool\release\state-svc.exe [_event x-action=Please+Confirm&x-category=prompt&x-custom10=[USERNAME]%2FPerl-5.32&x-custom11=&x-custom12=9ecf0e18-849c-4e23-bfca-7c4769095fdf&x-custom13=&x-custom14=&x-custom15=&x-custom2=0.30.7-SHA28a42a2&x-custom3=release&x-custom4=&x-custom5=plain&x-custom6=Windows&x-custom7=10.0.19042&x-custom8=unknown&x-custom9=105cf6b5-7810-48c1-a109-3fc3af1c5865&x-label=present]
You are about to remove the State Tool, installed language runtimes, and all configuration information. Continue? (y/N)
> y
(PID 8640) [ERROR Nov 22 19:54:06.846825800, client.go:56] Error during analytics.sendEvent: Could not send analytics event, not connected to state-svc yet

Stacktrace: D:/a/cli/cli/internal/logging/logging.go:github.com/ActiveState/cli/internal/logging.Error:277
D:/a/cli/cli/internal/analytics/client.go:github.com/ActiveState/cli/internal/analytics.(*DefaultClient).EventWithLabel:56
D:/a/cli/cli/internal/prompt/prompt.go:github.com/ActiveState/cli/internal/prompt.(*Prompt).Confirm:172
D:/a/cli/cli/internal/runners/clean/uninstall.go:github.com/ActiveState/cli/internal/runners/clean.(*Uninstall).Run:51
D:/a/cli/cli/cmd/state/internal/cmdtree/clean.go:github.com/ActiveState/cli/cmd/state/internal/cmdtree.newCleanUninstallCommand.func1:47
D:/a/cli/cli/internal/captain/command.go:github.com/ActiveState/cli/internal/captain.(*Command).runner.func1:551
D:/a/cli/cli/internal/sighandler/awaiting.go:github.com/ActiveState/cli/internal/sighandler.(*sigHandler).WaitForFunc.func1:46
C:/hostedtoolcache/windows/go/1.16.9/x64/src/runtime/asm_amd64.s:runtime.goexit:1371

(PID 8640) [DEBUG Nov 22 19:54:06.847353300, exeutils.go:149] Executing: C:\Users\[LOCALUSER]\AppData\Local\ActiveState\StateTool\release\state-svc.exe [_event x-action=Please+Confirm&x-category=prompt&x-custom10=[USERNAME]%2FPerl-5.32&x-custom11=&x-custom12=9ecf0e18-849c-4e23-bfca-7c4769095fdf&x-custom13=&x-custom14=&x-custom15=&x-custom2=0.30.7-SHA28a42a2&x-custom3=release&x-custom4=&x-custom5=plain&x-custom6=Windows&x-custom7=10.0.19042&x-custom8=unknown&x-custom9=105cf6b5-7810-48c1-a109-3fc3af1c5865&x-label=positive]
(PID 8640) [DEBUG Nov 22 19:54:06.848950900, exeutils.go:120] Executing command: C:\Users\[LOCALUSER]\AppData\Local\ActiveState\StateTool\release\state-svc.exe, [stop]
(PID 8640) [DEBUG Nov 22 19:54:07.798746600, svcmanager.go:97] Ping failed, assuming we're not ready: Post "http://127.0.0.1:60999/query": context deadline exceeded: context deadline exceeded
(PID 8640) [DEBUG Nov 22 19:54:07.804059900, subshell.go:102] Detected SHELL: cmd
(PID 8640) [DEBUG Nov 22 19:54:07.804059900, subshell.go:134] Using binary: C:\Windows\System32\cmd.exe
(PID 8640) [ERROR Nov 22 19:54:07.804579100, client.go:56] Error during analytics.sendEvent: Could not send analytics event, not connected to state-svc yet

Stacktrace: D:/a/cli/cli/internal/logging/logging.go:github.com/ActiveState/cli/internal/logging.Error:277
D:/a/cli/cli/internal/analytics/client.go:github.com/ActiveState/cli/internal/analytics.(*DefaultClient).EventWithLabel:56
D:/a/cli/cli/internal/captain/command.go:github.com/ActiveState/cli/internal/captain.(*Command).runner:568
D:/a/cli/cli/vendor/github.com/spf13/cobra/command.go:github.com/spf13/cobra.(*Command).execute:850
D:/a/cli/cli/vendor/github.com/spf13/cobra/command.go:github.com/spf13/cobra.(*Command).ExecuteC:958
D:/a/cli/cli/vendor/github.com/spf13/cobra/command.go::895
D:/a/cli/cli/internal/captain/command.go:github.com/ActiveState/cli/internal/captain.(*Command).Execute:249
D:/a/cli/cli/cmd/state/internal/cmdtree/cmdtree.go:github.com/ActiveState/cli/cmd/state/internal/cmdtree.(*CmdTree).Execute:285
D:/a/cli/cli/cmd/state/main.go:main.run:242
D:/a/cli/cli/cmd/state/main.go:main.main:102
C:/hostedtoolcache/windows/go/1.16.9/x64/src/runtime/proc.go:runtime.main:225
C:/hostedtoolcache/windows/go/1.16.9/x64/src/runtime/asm_amd64.s:runtime.goexit:1371

(PID 8640) [DEBUG Nov 22 19:54:07.805619100, exeutils.go:149] Executing: C:\Users\[LOCALUSER]\AppData\Local\ActiveState\StateTool\release\state-svc.exe [_event x-action=clean+uninstall&x-category=command-exit&x-custom10=[USERNAME]%2FPerl-5.32&x-custom11=&x-custom12=9ecf0e18-849c-4e23-bfca-7c4769095fdf&x-custom13=&x-custom14=&x-custom15=&x-custom2=0.30.7-SHA28a42a2&x-custom3=release&x-custom4=&x-custom5=plain&x-custom6=Windows&x-custom7=10.0.19042&x-custom8=unknown&x-custom9=105cf6b5-7810-48c1-a109-3fc3af1c5865&x-label=1]
(PID 8640) [CRITICAL Nov 22 19:54:07.805619100, errors.go:94] Returning error:
Failed to remove PATH entries from environment
Failed to remove all State Tool files in installation directory C:\Users\[LOCALUSER]\AppData\Local\ActiveState\StateTool\release
Created at:
D:/a/cli/cli/internal/runners/clean/run_win.go:github.com/ActiveState/cli/internal/runners/clean.(*Uninstall).runUninstall:51
D:/a/cli/cli/internal/runners/clean/uninstall.go:github.com/ActiveState/cli/internal/runners/clean.(*Uninstall).Run:64
D:/a/cli/cli/cmd/state/internal/cmdtree/clean.go:github.com/ActiveState/cli/cmd/state/internal/cmdtree.newCleanUninstallCommand.func1:47
D:/a/cli/cli/internal/captain/command.go:github.com/ActiveState/cli/internal/captain.(*Command).runner.func1:551
D:/a/cli/cli/internal/sighandler/awaiting.go:github.com/ActiveState/cli/internal/sighandler.(*sigHandler).WaitForFunc.func1:46
C:/hostedtoolcache/windows/go/1.16.9/x64/src/runtime/asm_amd64.s:runtime.goexit:1371
(PID 8640) [DEBUG Nov 22 19:54:07.806654800, log.go:184] goroutine 1 [running, locked to thread]:
runtime/debug.Stack(0x4, 0x18ca5fc, 0x8)
        C:/hostedtoolcache/windows/go/1.16.9/x64/src/runtime/debug/stack.go:24 +0xa5
github.com/ActiveState/cli/internal/logging.Critical(0x18fd5ea, 0x22, 0xc000509520, 0x2, 0x2)
        D:/a/cli/cli/internal/logging/logging.go:301 +0x9c
main.unwrapError(0x1b43ac0, 0xc000980500, 0x4, 0x1, 0x1b6f9c8)
        D:/a/cli/cli/cmd/state/errors.go:94 +0x868
main.main()
        D:/a/cli/cli/cmd/state/main.go:104 +0x598