Skip to main content
The 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:
  1. Workflow templates: Argo templates matching the project and branch annotations. Deleting a template cascades to its associated CronWorkflows and Sensors.
  2. Data assets, as listed in the flowproject metadata.
  3. Model assets, as listed in the flowproject metadata.
  4. Apps: capsules tagged with the project and branch.
  5. Flowproject metadata: the metadata record itself.

Examples

Preview what would be deleted:
Execute the teardown:
Produce JSON output for scripting:
Teardown deletes asset metadata, not the underlying data. To keep assets from a feature branch, promote them with promote_assets before tearing down, as described in Project lifecycle.