2022-09-09 00:31:29 +00:00
|
|
|
# Uninstall
|
|
|
|
|
|
|
|
This article walks you through how to uninstall your Coder server.
|
|
|
|
|
|
|
|
To uninstall your Coder server, delete the following directories.
|
|
|
|
|
|
|
|
## Cached Coder releases
|
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
```shell
|
2022-09-09 00:31:29 +00:00
|
|
|
rm -rf ~/.cache/coder
|
|
|
|
```
|
|
|
|
|
|
|
|
## The Coder server binary and CLI
|
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
<div class="tabs">
|
2022-09-09 00:31:29 +00:00
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
## Linux
|
|
|
|
|
|
|
|
<div class="tabs">
|
|
|
|
|
|
|
|
## Debian, Ubuntu
|
|
|
|
|
|
|
|
```shell
|
2022-09-09 00:31:29 +00:00
|
|
|
sudo apt remove coder
|
|
|
|
```
|
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
## Fedora, CentOS, RHEL, SUSE
|
2022-09-09 00:31:29 +00:00
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
```shell
|
2022-09-09 00:31:29 +00:00
|
|
|
sudo yum remove coder
|
|
|
|
```
|
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
## Alpine
|
2022-09-09 00:31:29 +00:00
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
```shell
|
2022-09-09 00:31:29 +00:00
|
|
|
sudo apk del coder
|
|
|
|
```
|
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
</div>
|
|
|
|
|
2023-08-23 09:27:57 +00:00
|
|
|
If you installed Coder manually or used the install script on an unsupported
|
|
|
|
operating system, you can remove the binary directly:
|
2022-09-09 00:31:29 +00:00
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
```shell
|
2022-09-09 00:31:29 +00:00
|
|
|
sudo rm /usr/local/bin/coder
|
|
|
|
```
|
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
## macOS
|
|
|
|
|
|
|
|
```shell
|
|
|
|
brew uninstall coder
|
|
|
|
```
|
|
|
|
|
|
|
|
If you installed Coder manually, you can remove the binary directly:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sudo rm /usr/local/bin/coder
|
|
|
|
```
|
|
|
|
|
|
|
|
## Windows
|
|
|
|
|
|
|
|
```powershell
|
|
|
|
winget uninstall Coder.Coder
|
|
|
|
```
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2022-09-09 00:31:29 +00:00
|
|
|
## Coder as a system service configuration
|
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
```shell
|
2022-09-09 00:31:29 +00:00
|
|
|
sudo rm /etc/coder.d/coder.env
|
|
|
|
```
|
|
|
|
|
|
|
|
## Coder settings and the optional built-in PostgreSQL database
|
|
|
|
|
|
|
|
> There is a `postgres` directory within the `coderv2` directory that has the
|
2023-08-23 09:27:57 +00:00
|
|
|
> database engine and database. If you want to reuse the database, consider not
|
|
|
|
> performing the following step or copying the directory to another location.
|
2022-09-09 00:31:29 +00:00
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
<div class="tabs">
|
2022-09-09 00:31:29 +00:00
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
## macOS
|
|
|
|
|
|
|
|
```shell
|
2022-09-09 00:31:29 +00:00
|
|
|
rm -rf ~/Library/Application\ Support/coderv2
|
|
|
|
```
|
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
## Linux
|
2022-09-09 00:31:29 +00:00
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
```shell
|
2022-09-09 00:31:29 +00:00
|
|
|
rm -rf ~/.config/coderv2
|
|
|
|
```
|
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
## Windows
|
2022-09-09 00:31:29 +00:00
|
|
|
|
2024-01-10 12:00:19 +00:00
|
|
|
```powershell
|
|
|
|
rmdir %AppData%\coderv2
|
2022-09-09 00:31:29 +00:00
|
|
|
```
|
2024-01-10 12:00:19 +00:00
|
|
|
|
|
|
|
</div>
|