Delete a drawer

POST/api/drawers/delete

Deletes a drawer owned by the caller. mode: 'unfile' (default) only detaches the drawer's folders — they survive at the root level, and no report is ever touched. mode: 'cascade' also deletes those folders (their contents become unfiled, exactly like POST /api/folders/delete with mode: 'unfile') — still never deletes a report. mode: 'cascade' requires reports:delete in addition to reports:write, since it is a bulk structural change; a reports:write-only token gets 403 even though the same token can still delete with mode: 'unfile'.

Body Parameters

idstringrequired
modestring
Default "unfile". One of unfile, cascade.