mr resource-category delete
Delete a resource category by ID. Destructive: removes the resource category row. Resources that referenced this category are reassigned to the default resource category. Deleting an ID that does not exist fails with HTTP 404 and exit code 1, and the default resource category itself cannot be deleted.
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
| Flag | Type | Default | Description |
|---|---|---|---|
--json | bool | false | Output raw JSON |
--no-header | bool | false | Omit table headers |
--page | int | 1 | Page number for list commands (default page size: 50) |
--quiet | bool | false | Only output IDs |
--server | string | http://localhost:8181 | mahresources server URL (env: MAHRESOURCES_URL) |
Exit Codes
0 on success; 1 on any error