conda / conda/constructor

can't uninstall conda using the uninstaller

Open
#1,019 1 comment 0 reactions 0 assignees View on GitHub
type::bug
Dominant language
Python
Stars
497
Forks
181
Avg merge
1d 16h
Merged PRs (30d)
17

Description

### Checklist

- [x] I added a descriptive title
- [x] I searched open reports and couldn't find a duplicate

### What happened?

```
OS Version : Windows Server 2019
Powershell version : 5.1.17763.7434
conda version : 25.5.1-1
```

I'm trying to uninstall Anaconda via PowerShell on several Windows servers.
According to the documentation (https://www.anaconda.com/docs/getting-started/anaconda/uninstall#powershell and https://conda.github.io/constructor/cli-options/#windows-installers),
I need to run this command:
` Start-Process -FilePath "C:\Program Files\Miniconda3\Uninstall-Miniconda3.exe" -ArgumentList "/S" -NoNewWindow -Wait`

but on some servers, I have this message :
```
Running pre_uninstall scripts...
::error:: Failed to run pre_uninstall
Running rmpath scripts...
::error:: Failed to run rmpath
Running rmreg scripts...
::error:: Failed to run rmreg
Removing files and folders...
```

I can uninstall deleting the directory and remove in regedit `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall`

### Additional Context

### Conda config

```
$ "C:\Program Files\Miniconda3\Scripts\conda.exe" config --show-sources
==> C:\Program Files\Miniconda3\.condarc <==
envs_dirs:
- Y:\*********
ssl_verify: C:\Program Files\Miniconda3\*******
channels:
- https://***********/repository/conda-proxy/main
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.