Skip to main content

mr resource-category delete

Delete a resource category by ID. Destructive: removes the resource category row. Resources that reference this category remain but lose their category association. Deleting a nonexistent ID may still return success at the server level.

Usage

mr resource-category delete <id>

Positional arguments:

  • <id>

Examples

Delete a resource category by ID

mr resource-category delete 42

Delete and pipe the result to jq to inspect the response

mr resource-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