When you install BRIX AI in Docker Swarm, it creates a stack representing your installation instance. You can delete this stack along with all server data.
Delete stack while preserving data
To remove all BRIX AI services from the Docker Swarm cluster without clearing data, use one of the following methods:
- Run the uninstallation script.
chmod +x uninstall.sh
./uninstall.sh
If you use multiple instances of BRIX AI and specify the project name in scripts:
./uninstall.sh --project-name my-cortex
- Remove the stack from Docker Swarm manually.
docker stack rm brix-cortex
Delete stack and data
To permanently delete BRIX AI and all its data:
- Delete the stack using the command:
./uninstall.sh
If you use multiple instances of BRIX AI and specify the project name in scripts:
./uninstall.sh --project-name my-cortex
- Wait for all services to stop.
- Delete data volumes:
docker volume rm $(docker volume ls -q -f name=elma-cortex)
This will also delete the data of the Caddy internal certificate authority. If you use Internal as your TLS certificate management mode, you need to export the Caddy root certificate again after reinstallation and add it to trusted certificates.