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
meta is merged into the resource's effective Meta first (the resource's
own values win), so values the series contributed stay on the detached
resource. The resource's bytes are preserved; the series is deleted when
the detached resource was its last member. A resource that is not in a
series is refused. 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
| 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