Skip to main content

delete_tags

Removes all tags associated with a deployment. Learn more about organizing deployments with tags.

Parameters

mb.delete_tags(deployment=...)
  • deployment: str The name of the deployment to update.
  • branch: Optional[str]: The branch of the deployment to update. By default it's the current branch of the session.

Returns

No value is returned. A success message is printed if the tags are updated. An exception is raised if the deployment is not found.

Examples

For the following examples, assume a deployment named example_deployment exists in the workspace.

Removing tags from a deployment

To remove all tags from a deployment on the current branch:

mb.delete_tags(deployment="example_deployment")

Remove all tags from a deployment on a specific branch

Use branch= to remove tags from a deployment on another branch:

mb.delete_tags(deployment="example_deployment", branch="other_branch")

See also