Skip to main content

mr notes delete

Bulk-delete Notes. Destructive: removes database rows for every Note listed in --ids along with their tag/group/resource associations. The current CLI has no dry-run; pipe notes list --json first if you need to preview targets before deleting.

Usage

mr notes delete

Examples

Delete specific notes

mr notes delete --ids 42,43,44

Delete the output of a filter query

mr notes list --tags 7 --json | jq -r '[.[].ID] | join(",")' | xargs -I {} mr notes delete --ids {}

Flags

FlagTypeDefaultDescription
--idsstring``Comma-separated note 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