Skip to main content

mr resources delete

Bulk-delete Resources. Destructive: removes both the database rows and the stored file bytes. Target Resources are selected via --ids (CSV of unsigned ints). The current CLI has no dry-run; pipe resources list --json first if you need to preview targets.

Usage

mr resources delete

Examples

Delete specific resources

mr resources delete --ids 42,43,44

Delete the output of a filter query

mr resources list --tags 7 --json | jq -r 'map(.id) | join(",")' | xargs -I {} mr resources delete --ids {}

Flags

FlagTypeDefaultDescription
--idsstring``Comma-separated resource IDs to delete (required) (required)

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