> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Uninstalling Package Security Manager

**1. Back up Package Security Manager**

Make sure you [create a backup](https://anaconda.com/docs/psm-on-prem/6.8.0/admin/advanced/restore.md) of your logs, artifacts database, and Postgres database before uninstalling. Even if you don't plan to restore your data, it's best practice to have a backup.

**2. Uninstall Package Security Manager**

1. Open a terminal.

2. Log in to the server that hosts your Package Security Manager installation.

3. Navigate to your Anaconda installer directory (`ate-installer-*`) by running the following command:

   ```sh theme={null}
   # Replace <INSTALLER_DIR> with your installer directory
   cd <INSTALLER_DIR>
   ```

   > [!TIP]
   >
   > Start typing `ate-installer-` in your terminal, then press Tab to autocomplete the directory name.

4. Shut down your containers:

   ```sh theme={null}
   docker compose down
   ```

5. Remove Package Security Manager's package data:

   ```sh theme={null}
   rm -rf /opt/anaconda/repo
   ```

6. Uninstall Package Security Manager and its configurations:

   ```sh theme={null}
   # Replace <INSTALLER_DIR> with your installer directory
   rm -rf <INSTALLER_DIR>
   ```
