API Reference

Delete a single folder

Description

Deletes the folder with the provided ID. If the folder is not found, this is a no-op. All files and sub-folders are also recursively deleted.

DELETE /api/v1/folder/{folderId}

🚧

Required OAuth Scopes:

No OAuth scopes are required to use this endpoint.

Parameters

ParameterInTypeRequiredDescription
folderIdpathstringtrueThe unique identifier of the folder

Code Samples

curl -X DELETE https://h.app.wdesk.com/s/wdata/prep/api/v1/folder/{folderId}  \ 
-H 'Accept: */*' \ 
-H 'Authorization: Bearer {access-token}'
http DELETE https://h.app.wdesk.com/s/wdata/prep/api/v1/folder/{folderId}  \ 
Accept:*/* \ 
Authorization:"Bearer {access-token}"
wget --method=DELETE "https://h.app.wdesk.com/s/wdata/prep/api/v1/folder/{folderId}" \
 --output-document -  \ 
 --header 'Accept: */*' \ 
 --header 'Authorization: Bearer {access-token}'
import requests
headers = {
  'Accept': '*/*',
  'Authorization': 'Bearer {access-token}'
}

r = requests.delete('https://h.app.wdesk.com/s/wdata/prep/api/v1/folder/{folderId}', headers = headers)

print(r.json())

Returns

200 - OK

Returns a JSON object with a body property, which contains the ID of the deleted resource.

Example Responses

No example available