Uninstall Mathesar¶
The uninstall instructions vary depending on the installation method you chose. Select your installation method below to proceed.
Uninstall a Docker installation of Mathesar¶
Note
Depending on your Docker setup, you may need to run docker
commands with sudo
.
-
Remove the Mathesar container.
-
Remove the Mathesar Image
-
Remove volumes related to Mathesar
-
Remove Mathesar internal schemas.
If you’d like to continue using your PostgreSQL database, you’ll need to remove the schemas created for Mathesar’s use during installation. You can remove them from the database as follows:
-
Connect to the database.
-
Delete the types schema.
Deleting this schema will also delete any database objects that depend on it. This should not be an issue if you don’t have any data using Mathesar’s custom data types.
-
Delete the function schemas.
-
Uninstall a Guided script or Docker compose installation of Mathesar¶
-
Remove all Mathesar Docker images and containers.
-
Remove configuration files.
-
Remove Mathesar internal schemas.
If you’d like to continue using your PostgreSQL database, you’ll need to remove the schemas created for Mathesar’s use during installation. You can remove them from the database as follows:
-
Connect to the database.
-
Delete the types schema.
Deleting this schema will also delete any database objects that depend on it. This should not be an issue if you don’t have any data using Mathesar’s custom data types.
-
Delete the function schemas.
-
Uninstall a source installation of Mathesar¶
-
Stop Caddy service
-
Remove Caddy service file and Caddyfile (requires
sudo
) -
Stop Gunicorn
-
Remove Gunicorn service file
-
Remove your Mathesar installation directory
Your installation directory might be customized
It’s possible that Mathesar could have been installed into a different directory than shown above. Use caution when deleting this directory.
-
Remove Django database
-
Connect to the psql terminal.
-
Drop the Django database.
-
-
Remove Mathesar internal schemas.
If you’d like to continue using your PostgreSQL database, you’ll need to remove the schemas created for Mathesar’s use during installation. You can remove them from the database as follows:
-
Connect to the database.
-
Delete the types schema.
Deleting this schema will also delete any database objects that depend on it. This should not be an issue if you don’t have any data using Mathesar’s custom data types.
-
Delete the function schemas.
-