Box Developer Documentation

Join BoxWorks 2024 to discover what's possible with content and AI!

Register now!

Delete Folder Lock

Delete Folder Lock

To remove a lock applied to a folder in Box, call the DELETE /folder_locks/:id API with the id of the folder lock.

Folder Locks

When using any folder lock API endpoints, you must be authenticated as the owner/co-owner of the folder you are trying to access.

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

Locating the folder Lock ID

To delete a folder lock you must supply the folder lock ID to the API. A folder lock ID is supplied in the response when creating a folder lock, or when listing locks on a given folder.