This topic provides instructions for uninstalling Artifactory based on its original installation method.
Warning
Uninstalling Artifactory will permanently remove the Artifactory user account. If you plan to reinstall Artifactory, ensure that a new user account will be created with a different User ID (UID), and your previous user configurations will be lost.
Docker Compose
Follow these steps to uninstall Artifactory when installed using Docker Compose:
Navigate to the installation directory.
cd jfrog-artifactory-<version>-compose
Stop the Artifactory containers.
docker-compose -p rt down
Stop the PostgreSQL container (if applicable).
docker-compose -p rt-postgres down
Remove Docker container traces. If you need to remove the Docker container trace, use the following commands.
For product containers:
docker rm artifactory
For a PostgreSQL container:
docker rm postgres
For a Nginx container:
docker rm nginx
Note
The steps above will remove only the containers. You will also need to manually remove the Docker mount directory from the host machine (default ~/.jfrog/artifactory/var) if needed. Make sure you do not remove <MOUNT_PATH>/artifactory/var/data/postgres if you need the third-party data persisted.
Linux Packages (RPM)
Follow these steps to uninstall Artifactory when installed using RPM:
Note
The steps below will remove only the application directory. You will need to manually remove the data directory and application configurations (/var/opt/jfrog/artifactory) if required.
Stop Artifactory.
systemctl stop artifactory.service
Run the RPM uninstall. You must run as a root user.
sudo yum erase jfrog-artifactory-pro
Linux Packages (Debian)
Follow these steps to uninstall Artifactory when installed using Debian packages:
Note
The steps below will remove only the application directory. You will need to manually remove the data directory and application configurations (/var/opt/jfrog/artifactory) if required.
Stop Artifactory.
systemctl stop artifactory.service
Run the Debian uninstall. You must run as a root user.
sudo apt remove jfrog-artifactory-pro
Linux Archive
Follow these steps to uninstall Artifactory when installed from a Linux archive:
Go to the directory where you extracted the installer and delete that directory.