Skip to main content

mr category delete

Delete a Category by ID. Destructive: removes the category row. Groups previously assigned to this category become uncategorized (the group records themselves are preserved). Every group relation type naming this category on either side is deleted with it, and so is every relation edge of those types, across the whole database. Deleting an ID that does not exist fails with HTTP 404: record not found and exit code 1.

Usage

mr category delete <id>

Positional arguments:

  • <id>

Examples

Delete a category by ID

mr category delete 42

Delete and pipe the result to jq to confirm the response shape

mr category delete 42 --json | jq .

Flags

This command has no local flags.

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