Folders
Remove files from a directory (folder)
Detach files from a directory. The files themselves are not deleted: they stay in the workspace and in every other directory they belong to.
DELETE
Remove files from a directory (folder)
Request · Response · Guide: Folders
More details
More details
To delete a file, use
DELETE /v1/files.Path Parameters:directoryId(required): The directory to detach the files from
fileIds(string[], required): Ids of files to detach. At least 1, at most 100. Repeated ids are collapsed.
removed: detached by this requestnotAttached: not attached to this directory when the request ran
- The endpoint is safe to retry. Detaching a file that is already detached reports it as
notAttachedand is not an error. - Directories that have a workflow are rejected with a 422, and so are their immediate subfolders. Advancing a workflow on detach is not supported yet.
- A file that is a workflow result in this directory is rejected with a 422 naming the file ids; nothing in the request is detached.
directoryIdis echoed back in canonical lowercase form regardless of the case you send.
Headers
Body
application/json
Response
The detach request was processed. Check removed and notAttached for the per-file outcome.