Skip to main content

mr query delete

Delete a saved query by ID. Destructive: removes the database row for the query. Any downstream references (saved dashboards, bookmarks) should be updated separately. Deleting a nonexistent ID returns exit code 1.

Usage

mr query delete <id>

Positional arguments:

  • <id>

Examples

Delete a query by ID

mr query delete 42

Delete and pipe the result to jq to confirm

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