-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NGINX Agent Uninstall Doc (#323)
* Add NGINX Agent Uninstall Doc * addressing feedback * Update hugo/content/uninstall.md Co-authored-by: Dean Coakley <[email protected]> * Add doc id * Addressing feedback --------- Co-authored-by: Dean Coakley <[email protected]>
- Loading branch information
1 parent
3639b7f
commit bb14c9f
Showing
1 changed file
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
--- | ||
title: "Uninstall NGINX Agent Package" | ||
draft: false | ||
description: "Learn how to uninstall NGINX Agent" | ||
weight: 500 | ||
toc: true | ||
tags: [ "docs" ] | ||
docs: "DOCS-1230" | ||
categories: ["configuration"] | ||
doctypes: ["task"] | ||
--- | ||
|
||
## Prerequisites | ||
|
||
- NGINX Agent installed [NGINX Agent installed](../installation-oss) | ||
- The user following these steps will need `root` privilege | ||
|
||
## Uninstalling NGINX Agent | ||
Complete the following steps on each host where you’ve installed the NGINX Agent | ||
|
||
|
||
- [Uninstalling NGINX Agent on RHEL, CentOS, Rocky Linux, AlmaLinux, and Oracle Linux](#uninstalling-nginx-agent-on-rhel-centos-rocky-linux-almalinux-and-oracle-linux) | ||
- [Uninstalling NGINX Agent on Ubuntu](#uninstalling-nginx-agent-on-ubuntu) | ||
- [Uninstalling NGINX Agent on Debian](#uninstalling-nginx-agent-on-debian) | ||
- [Uninstalling NGINX Agent on SLES](#uninstalling-nginx-agent-on-sles) | ||
- [Uninstalling NGINX Agent on Alpine Linux](#uninstalling-nginx-agent-on-alpine-linux) | ||
- [Uninstalling NGINX Agent on Amazon Linux](#uninstalling-nginx-agent-on-amazon-linux) | ||
- [Uninstalling NGINX Agent on FreeBSD](#uninstalling-nginx-agent-on-freebsd) | ||
|
||
### Uninstalling NGINX Agent on RHEL, CentOS, Rocky Linux, AlmaLinux, and Oracle Linux | ||
|
||
Complete the following steps on each host where you've installed the NGINX Agent: | ||
|
||
1. Stop the NGINX Agent: | ||
|
||
```bash | ||
sudo systemctl stop nginx-agent | ||
``` | ||
|
||
2. To uninstall the NGINX Agent, run the following command: | ||
|
||
```bash | ||
sudo yum remove nginx-agent | ||
``` | ||
|
||
### Uninstalling NGINX Agent on Ubuntu | ||
|
||
Complete the following steps on each host where you've installed the NGINX Agent: | ||
1. Stop the NGINX Agent: | ||
```bash | ||
sudo systemctl stop nginx-agent | ||
``` | ||
2. To uninstall the NGINX Agent, run the following command: | ||
```bash | ||
sudo apt-get remove nginx-agent | ||
``` | ||
> **Note:** The `apt-get remove <package>` command will remove the package from your system, while keeping the associated configuration files for possible future use. If you want to completely remove the package and all of its configuration files, you should use `apt-get purge <package>`. | ||
### Uninstalling NGINX Agent on Debian | ||
Complete the following steps on each host where you've installed the NGINX Agent: | ||
|
||
1. Stop the NGINX Agent: | ||
|
||
```bash | ||
sudo systemctl stop nginx-agent | ||
``` | ||
|
||
2. To uninstall the NGINX Agent, run the following command: | ||
|
||
```bash | ||
sudo apt-get remove nginx-agent | ||
``` | ||
|
||
> **Note:** The `apt-get remove <package>` command will remove the package from your system, while keeping the associated configuration files for possible future use. If you want to completely remove the package and all of its configuration files, you should use `apt-get purge <package>`. | ||
|
||
### Uninstalling NGINX Agent on SLES | ||
|
||
Complete the following steps on each host where you've installed the NGINX Agent: | ||
1. Stop the NGINX Agent: | ||
```bash | ||
sudo systemctl stop nginx-agent | ||
``` | ||
2. To uninstall the NGINX Agent, run the following command: | ||
```bash | ||
sudo zypper remove nginx-agent | ||
``` | ||
### Uninstalling NGINX Agent on Alpine Linux | ||
Complete the following steps on each host where you've installed the NGINX Agent: | ||
|
||
1. Stop the NGINX Agent: | ||
|
||
```bash | ||
sudo rc-service nginx-agent stop | ||
``` | ||
|
||
2. To uninstall the NGINX Agent, run the following command: | ||
|
||
```bash | ||
sudo apk del nginx-agent | ||
``` | ||
|
||
### Uninstalling NGINX Agent on Amazon Linux | ||
|
||
Complete the following steps on each host where you've installed the NGINX Agent: | ||
1. Stop the NGINX Agent: | ||
```bash | ||
sudo systemctl stop nginx-agent | ||
``` | ||
2. To uninstall the NGINX Agent, run the following command: | ||
```bash | ||
sudo yum remove nginx-agent | ||
``` | ||
### Uninstalling NGINX Agent on FreeBSD | ||
Complete the following steps on each host where you've installed the NGINX Agent: | ||
|
||
1. Stop the NGINX Agent: | ||
|
||
```bash | ||
sudo service nginx-agent stop | ||
``` | ||
|
||
2. To uninstall the NGINX Agent, run the following command: | ||
|
||
```bash | ||
sudo pkg delete nginx-agent | ||
``` |