Deletes a folder owned by the caller. mode: 'unfile' (default) makes its contents unfiled — no report is ever deleted. mode: 'cascade' permanently deletes the folder's contents (every report in it, all versions), and requires reports:delete in addition to reports:write — including for dryRun: true, since even the preview would leak how many reports are about to be destroyed. A cascade (non-dry-run) request must also include confirmTitle equal, character-for-character, to the folder's current title (compare to GitHub's delete-repo confirmation); a mismatch returns 400 CONFIRM_TITLE_MISMATCH and nothing is changed.
Body Parameters
idstringrequired
modestring
Default "unfile". One of unfile, cascade.
dryRunboolean
mode: 'cascade' only: preview the exact counts with zero writes. Default false.
confirmTitlestring
mode: 'cascade' (non-dry-run) only: must equal the folder's current title exactly.