Skip to main content

mr relation delete

Delete a Relation by ID. Destructive: removes the link row entirely. The two groups and the relation-type are unaffected. Deleting a nonexistent ID returns exit code 1. To confirm the removal, re-fetch either participating group with mr group get <id> --json and check that the relation no longer appears in its Relationships array.

Usage

mr relation delete <id>

Positional arguments:

  • <id>

Examples

Delete relation 7

mr relation delete 7

Delete and pipe the result to jq

mr relation delete 7 --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