Skip to content

cub tag delete

cub tag delete

Delete a tag or multiple tags

Synopsis

Delete a tag or multiple tags using bulk operations.

Single tag delete:

  cub tag delete my-tag

Bulk delete with --where:

Delete multiple tags at once based on search criteria.

Examples:

  # Delete all tags created before a specific date
  cub tag delete --where "CreatedAt < '2024-01-01'"

  # Delete tags with specific labels
  cub tag delete --where "Labels.archived = 'true'"

  # Delete tags across all spaces (requires --space "*")
  cub tag delete --space "*" --where "Labels.cleanup = 'true'"

  # Delete specific tags by slug
  cub tag delete --tag old-tag,deprecated-tag
cub tag delete [<slug or id>] [flags]

Options

      --filter string   Filter entity to apply to the list. Specify as 'space/filter' for cross-space filters or just 'filter' for current space. Supports both slugs and UUIDs. The filter will be combined with any --where clause using AND logic. Examples: "production-filters/security-check", "my-filter-uuid", "validation-rules"
  -h, --help            help for delete
  -o, --output string   Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
      --quiet           No default output.
      --tag strings     target specific tags by slug or UUID for bulk delete (can be repeated or comma-separated)
      --verbose         Detailed output, additive with default output
      --where string    Filter expression using SQL-inspired syntax. Supports conjunctions with AND. String operators: =, !=, <, >, <=, >=, LIKE, NOT LIKE, ILIKE, ~~, !~~, ~, ~*, !~, !~*. Pattern matching with LIKE/ILIKE uses % and _ wildcards. Regex operators (~, ~*, !~, !~*) support POSIX regular expressions. Examples: "Slug LIKE 'app-%'", "DisplayName ILIKE '%backend%'", "Slug ~ '^[a-z]+-[0-9]+$'"

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output
      --space string     space ID to perform command on

SEE ALSO