Folders
Delete a folder
Delete an empty folder of the media library.
DELETE
Delete a folder
Needs
folders:delete, and a role in the workspace that can delete media. See Permissions.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
Related
- List media: what is in the folder, with
folder_id. - List folders: its subfolders, with
parent_id.
Authorizations
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.
A code a few errors add, such as rate_limited. See Handle errors.