Destroy a Deployment
Prerequisites
Quick Start
bricks uninstall --deployment my-postgres-db --collection productionbricks uninstall @myorg/postgres --collection productionbricks uninstall --deployment my-postgres-db --collection production --plan-onlybricks deploy list
What Is Uninstalling?
Uninstall Methods
Method 1: Uninstall by Deployment Slug
Method 2: Uninstall by Package Name
Destroy Flow
1. Plan Destruction
2. Review and Approve
3. Verify Destruction
Deployment Manifest for Uninstall
Using GitHub Actions
Plan Destruction on PR
Execute Destruction on Approval
Automated Cleanup (Non-Production)
Important Considerations
Data Protection
Dependency Management
Resource Cleanup
Best Practices
Always Plan Before Destroy
Verify Destruction
Collection Safety
Common Scenarios
Destroy Single Deployment
Destroy All Deployments for a Package
Destroy with Specific Environment
Failed Destruction Recovery
See also
Last updated
Was this helpful?

