Drive
Delete a folder
DELETE/api/v1/drive/folders/:id
Who can use this: Any signed-in accountAs Markdown
Every file and folder inside it goes too, however deep. Unlike the Drive web page, this is immediate and for good; add soft=1 to move the whole folder to Trash instead, where it can be restored in one go.
Parameters
| Name | Where | What it is |
|---|---|---|
| id required | path | The folder's id.e.g. 7 |
| soft | query | 1 to move the folder to Trash instead of deleting it for good. |
Good to know
- A folder that isn't yours, doesn't exist or is already in Trash answers 404.