Delete folder
Delete a folder using the required mode query param: delete_contents removes the folder with its assets and subfolders, move_to_parent relocates contents up one level first. Returns counts of what was deleted or moved. Responds 409 (with the blocking asset ids) when deletion would remove assets attached to scheduled posts.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Media-library folder id (UUID), as returned by the list folders endpoint.
Query Parameters
What happens to the folder contents: delete_contents soft-deletes every asset and subfolder, move_to_parent reparents them before removing the folder.
delete_contents, move_to_parent "move_to_parent"