Skip to main content

mr series remove-resource

Remove a resource from its series. Takes the resource ID as a single positional argument and clears the resource's SeriesId; the series itself and the resource's bytes are preserved. To move a resource to a different series instead of detaching it, use resource edit --series-id on the resource.

Usage

mr series remove-resource <resource-id>

Positional arguments:

  • <resource-id>

Examples

Detach resource 123 from whatever series it belongs to

mr series remove-resource 123

Detach and confirm by inspecting the resource's seriesId

mr series remove-resource 123 && mr resource get 123 --json | jq .seriesId

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