Skip to main content

mr tags delete

Bulk-delete Tags. Destructive: removes the tag rows and detaches them from any Resources, Notes, or Groups they were attached to (the related entities themselves are preserved). Target tags are selected via --ids (CSV of unsigned ints). The current CLI has no dry-run; pipe tags list --json first if you need to preview targets.

Usage

mr tags delete

Examples

Delete specific tags

mr tags delete --ids 42,43,44

Delete all tags matching a name filter

mr tags delete --ids $(mr tags list --name "obsolete-" --json | jq -r 'map(.ID) | join(",")')

Flags

FlagTypeDefaultDescription
--idsstring``Comma-separated tag IDs to delete (required) (required)

Inherited global flags

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Exit Codes

0 on success; 1 on any error

See Also