Skip to main content

mr series delete

Delete a series by ID. Destructive: removes the series row. Resources previously attached to the series keep their bytes and have their SeriesId cleared (the foreign key uses ON DELETE SET NULL). Before the row goes, the series meta is merged into each member's stored metadata, with the resource's own values winning, so what the series contributed survives on the resources it held. Deleting a nonexistent ID returns exit code 1.

Usage

mr series delete <id>

Positional arguments:

  • <id>

Examples

Delete a series by ID

mr series delete 42

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

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