2025-01-03 18:12:59 +05:00
|
|
|
<!-- markdownlint-disable MD024 -->
|
2022-09-08 19:31:29 -05:00
|
|
|
# Uninstall
|
|
|
|
|
|
|
|
|
|
This article walks you through how to uninstall your Coder server.
|
|
|
|
|
|
|
|
|
|
To uninstall your Coder server, delete the following directories.
|
|
|
|
|
|
|
|
|
|
## The Coder server binary and CLI
|
|
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
<div class="tabs">
|
2022-09-08 19:31:29 -05:00
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
## Linux
|
|
|
|
|
|
|
|
|
|
<div class="tabs">
|
|
|
|
|
|
|
|
|
|
## Debian, Ubuntu
|
|
|
|
|
|
|
|
|
|
```shell
|
2022-09-08 19:31:29 -05:00
|
|
|
sudo apt remove coder
|
|
|
|
|
```
|
|
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
## Fedora, CentOS, RHEL, SUSE
|
2022-09-08 19:31:29 -05:00
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
```shell
|
2022-09-08 19:31:29 -05:00
|
|
|
sudo yum remove coder
|
|
|
|
|
```
|
|
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
## Alpine
|
2022-09-08 19:31:29 -05:00
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
```shell
|
2022-09-08 19:31:29 -05:00
|
|
|
sudo apk del coder
|
|
|
|
|
```
|
|
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
</div>
|
|
|
|
|
|
2023-08-23 12:27:57 +03:00
|
|
|
If you installed Coder manually or used the install script on an unsupported
|
|
|
|
|
operating system, you can remove the binary directly:
|
2022-09-08 19:31:29 -05:00
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
```shell
|
2022-09-08 19:31:29 -05:00
|
|
|
sudo rm /usr/local/bin/coder
|
|
|
|
|
```
|
|
|
|
|
|
2024-01-10 15:00:19 +03: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-08 19:31:29 -05:00
|
|
|
## Coder as a system service configuration
|
|
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
```shell
|
2022-09-08 19:31:29 -05:00
|
|
|
sudo rm /etc/coder.d/coder.env
|
|
|
|
|
```
|
|
|
|
|
|
2025-01-03 18:12:59 +05:00
|
|
|
## Coder settings, cache, and the optional built-in PostgreSQL database
|
2022-09-08 19:31:29 -05:00
|
|
|
|
2025-03-10 15:58:20 -05:00
|
|
|
There is a `postgres` directory within the `coderv2` directory that has the
|
|
|
|
|
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-08 19:31:29 -05:00
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
<div class="tabs">
|
2022-09-08 19:31:29 -05:00
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
## Linux
|
2022-09-08 19:31:29 -05:00
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
```shell
|
2022-09-08 19:31:29 -05:00
|
|
|
rm -rf ~/.config/coderv2
|
2025-01-03 18:12:59 +05:00
|
|
|
rm -rf ~/.cache/coder
|
2022-09-08 19:31:29 -05:00
|
|
|
```
|
|
|
|
|
|
2025-08-18 14:31:06 +10:00
|
|
|
## macOS
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
rm -rf ~/Library/Application\ Support/coderv2
|
|
|
|
|
```
|
|
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
## Windows
|
2022-09-08 19:31:29 -05:00
|
|
|
|
2024-01-10 15:00:19 +03:00
|
|
|
```powershell
|
|
|
|
|
rmdir %AppData%\coderv2
|
2022-09-08 19:31:29 -05:00
|
|
|
```
|
2024-01-10 15:00:19 +03:00
|
|
|
|
|
|
|
|
</div>
|