Scrub API
POST/v1/tools/delete_folderfree

Delete a folder

Deletes a folder from Files, free, by its id (fld_…). Nothing in it is deleted: its files and folders move to where it was, the folder it was in or the top of Files. It cannot be undone.

Fields

FieldTypeDefaultWhat it is
folderstringRequiredIts id, fld_…

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/delete_folder \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"folder":"…"}'

Answer

{
  "ok": true,
  "result": {
    "…": "…"
  }
}

What result holds is said above.

Every call can also answer an error: what comes back. Try it with your key from Account.