Skip to main content
DELETE
Delete a folder
Needs folders:delete, and a role in the workspace that can delete media. See Permissions.
Only an empty folder is deleted. A folder that holds subfolders or files isn’t: the answer is 422, and nothing changes. Move its subfolders out with Update a folder and delete its files with Delete a media file, or move the files to another folder in PostSyncer, then delete the folder. The API has no route that moves a file.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

folder_id
integer
required

The folder's id.

Response

The folder was deleted.

An error answer. Every one has message, in plain words; some add an error code and fields of their own.

message
string
required

What went wrong and what to do about it.

error
string

A code a few errors add, such as rate_limited. See Handle errors.