Remove a bundle in Next mode
Use bundle dev remove with a bundle definition while developing locally. Use bundle remove with a local artifact or OCI reference.
What you’ll accomplish
Section titled “What you’ll accomplish”- Remove all packages in a bundle.
- Remove selected packages when their dependencies allow it.
- Require confirmation before removal.
Prerequisites
Section titled “Prerequisites”- UDS CLI installed
- A bundle directory containing
bundle.uds.hcl, a local.tar.zstartifact, or an OCI bundle reference - Access to the target Kubernetes cluster
- A matching bundle public key or keyless certificate constraints when removing an artifact
-
Choose the removal command
Remove all packages defined by
bundle.uds.hclin the current directory during local development:Terminal window CLI_FEATURES=NextMode=true uds bundle dev removeTo remove packages using a created artifact, provide its local path or OCI reference. Artifact removal requires a verification policy unless you explicitly skip verification for an unsigned local alpha workflow:
Terminal window CLI_FEATURES=NextMode=true uds bundle remove ./my-bundle.tar.zst --public-key ./cosign.pubCLI_FEATURES=NextMode=true uds bundle remove oci://registry.example.com/my-org/my-app:1.0.0 --public-key ./cosign.pub -
Remove selected packages
Pass package IDs with
--packages:Terminal window CLI_FEATURES=NextMode=true uds bundle dev remove ./my-bundle --packages api,frontendThe command blocks removal when another bundle package depends on a selected package. Add
--forceonly when you accept that dependency risk:Terminal window CLI_FEATURES=NextMode=true uds bundle dev remove ./my-bundle --packages database --force -
Confirm before removal
Use
--promptto require interactive confirmation:Terminal window CLI_FEATURES=NextMode=true uds bundle dev remove ./my-bundle --prompt
Verification
Section titled “Verification”The command reports the bundle and packages selected for removal before it removes them. Use your cluster’s normal health checks to confirm that the package resources are gone.
Related documentation
Section titled “Related documentation”- Deploy a bundle in Next mode - Deploy bundle definitions and artifacts.
- Inspect and verify a bundle in Next mode - Inspect artifact metadata and verify signatures.
- config.uds.hcl - Configure artifact trust and deploy-time options.