Skip to main content

mr note-block delete

Delete a note block by ID. Destructive: removes the database row. Deleting a nonexistent ID returns exit code 1 with an HTTP 404 error. Deleting a block does not affect its parent Note or sibling blocks; to remove every block on a note, delete the note itself.

Usage

mr note-block delete <id>

Positional arguments:

  • <id>

Examples

Delete a note block by ID

mr note-block delete 42

Delete and pipe the response to jq to confirm

mr note-block 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