Delete folder lock

delete
https://api.box.com/2.0
/folder_locks/:folder_lock_id

Deletes a folder lock on a given folder.

You must be authenticated as the owner or co-owner of the folder to use this endpoint.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
12345

The ID of the folder lock.

Response

none

Returns an empty response when the folder lock is successfully deleted.

application/jsonClient error

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.

  • 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.

application/jsonClient error

Returns an error if the folder could not be found, or the authenticated user does not have access to the folder.

  • not_found when the authenticated user does not have access to the folder.
application/jsonClient error

An unexpected client error.

delete
Delete folder lock
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -i -X DELETE "https://api.box.com/2.0/folder_locks/93134" \ 
     -H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript (Beta)
await client.folderLocks.deleteFolderLockById(folderLock.id!);
Python (Beta)
client.folder_locks.delete_folder_lock_by_id(folder_lock.id)
.NET (Beta)
await client.FolderLocks.DeleteFolderLockByIdAsync(folderLockId: NullableUtils.Unwrap(folderLock.Id)).ConfigureAwait(false)