Clean up the Agent Identity Security deployment

Remove all Agent Identity Security containers, volumes, and configuration files when you no longer need the deployment.
  • Clean up using the script.

    The script interactively removes the container, Vault (if deployed), data volumes, and configuration files. Enter y at each prompt to confirm removal.

    sudo ./deploy-docker.sh cleanup
  • Clean up manually.
    # Stop and remove the application container
    docker stop ais-dp-bundle
    docker rm ais-dp-bundle
    
    # If using Vault, stop and remove the Vault container
    docker stop ais-vault
    docker rm ais-vault
    
    # Remove data volumes (deletes all data)
    docker volume rm ais-dp-postgres-data ais-dp-logs
    docker volume rm vault_data vault_config
    
    # Remove the Docker network (only if no other containers use it)
    docker network rm ais-network
    
    # Remove configuration files
    rm -f config.env encryption.key .deployment-state
    Warning: Removing data volumes permanently deletes your database and logs. Back up any data you need before running these commands.