Skip to main content

mr relation-type delete

Delete a RelationType by ID. Destructive: removes the type row entirely. Existing Relations that reference this type may be orphaned or cascade-deleted depending on the server's foreign-key configuration; inspect affected groups with mr group get <id> --json after a delete. Deleting a nonexistent ID returns exit code 1.

Usage

mr relation-type delete <id>

Positional arguments:

  • <id>

Examples

Delete relation-type 5

mr relation-type delete 5

Delete and pipe the result to jq

mr relation-type delete 5 --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)

Output

Status object with id

Exit Codes

0 on success; 1 on any error

See Also