teardown-branch subcommand deletes all deployed resources for a project branch in a single operation. Use it to clean up after a merged or abandoned feature branch. For the full lifecycle workflow, including promoting assets before teardown, see Project lifecycle.
Usage
Options
Teardown discovers and deletes these resource types in order:- Workflow templates: Argo templates matching the project and branch annotations. Deleting a template cascades to its associated CronWorkflows and Sensors.
- Data assets, as listed in the flowproject metadata.
- Model assets, as listed in the flowproject metadata.
- Apps: capsules tagged with the project and branch.
- Flowproject metadata: the metadata record itself.