/folders/{folder_id}Delete folder
Deletes a folder, either permanently or by moving it to the trash.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
A 400 is returned: Returns an error if the user makes a bad request.
-
folder_not_empty: Returned if the folder is not empty. Use therecursivequery parameter to recursively delete the folder and its contents. A 403 is returned: Returns an error if the user does not have the required access to perform the action. -
access_denied_insufficient_permissions: Returned when the user does not have access to the folder, or when a folder lock has been applied to the folder to prevent deletion. -
insufficient_scope: Returned an error if the application does not have the right scope to delete folders. Make sure your application has been configured to read and write all files and folders stored in Box. A 404 is returned: Returns an error if the folder could not be found, or the authenticated user does not have access to the folder. -
not_foundwhen the authenticated user does not have access to the folder. A 409 is returned:operation_blocked_temporary: Returned if the folder is locked due to another move, copy, delete or restore operation in progress.
The operation can be retried at a later point. A 412 is returned: Returns an error when the If-Match header does not match
the current etag value of the folder. This indicates that the
folder has changed since it was last requested. A 503 is returned: Returns an error when the operation takes longer
than 600 seconds. The operation will continue after
this response has been returned. Any other status is an error: An unexpected client error.