mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
0a815029e9
On https://coder.com/docs/install/uninstall at present we order the top OS listing as "Linux | macOS | Windows", while in the `Coder settings, cache, and the optional built-in PostgreSQL database` paragraph towards the bottom of the page we change to using "macOS | Linux | Windows" for some reason. This PR moves Linux to be listed first instead of macOS in the bottom paragraph to match the ordering of the top section.
97 lines
1.4 KiB
Markdown
97 lines
1.4 KiB
Markdown
<!-- markdownlint-disable MD024 -->
|
|
# 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
|
|
|
|
<div class="tabs">
|
|
|
|
## Linux
|
|
|
|
<div class="tabs">
|
|
|
|
## Debian, Ubuntu
|
|
|
|
```shell
|
|
sudo apt remove coder
|
|
```
|
|
|
|
## Fedora, CentOS, RHEL, SUSE
|
|
|
|
```shell
|
|
sudo yum remove coder
|
|
```
|
|
|
|
## Alpine
|
|
|
|
```shell
|
|
sudo apk del coder
|
|
```
|
|
|
|
</div>
|
|
|
|
If you installed Coder manually or used the install script on an unsupported
|
|
operating system, you can remove the binary directly:
|
|
|
|
```shell
|
|
sudo rm /usr/local/bin/coder
|
|
```
|
|
|
|
## 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>
|
|
|
|
## Coder as a system service configuration
|
|
|
|
```shell
|
|
sudo rm /etc/coder.d/coder.env
|
|
```
|
|
|
|
## Coder settings, cache, and the optional built-in PostgreSQL database
|
|
|
|
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.
|
|
|
|
<div class="tabs">
|
|
|
|
## Linux
|
|
|
|
```shell
|
|
rm -rf ~/.config/coderv2
|
|
rm -rf ~/.cache/coder
|
|
```
|
|
|
|
## macOS
|
|
|
|
```shell
|
|
rm -rf ~/Library/Application\ Support/coderv2
|
|
```
|
|
|
|
## Windows
|
|
|
|
```powershell
|
|
rmdir %AppData%\coderv2
|
|
```
|
|
|
|
</div>
|