Delete Folder (Move to Trash)
curl --request POST \
--url https://api.zerodrive.dev/v1/folders/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"drive_id": "primary"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', drive_id: 'primary'})
};
fetch('https://api.zerodrive.dev/v1/folders/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/folders/delete"
payload = {
"path": "<string>",
"drive_id": "primary"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Delete Folder (Move to Trash)
Move a folder to 30-day Trash asynchronously and return an operation ID.
POST
https://api.zerodrive.dev
/
v1
/
folders
/
delete
Delete Folder (Move to Trash)
curl --request POST \
--url https://api.zerodrive.dev/v1/folders/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"drive_id": "primary"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', drive_id: 'primary'})
};
fetch('https://api.zerodrive.dev/v1/folders/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/folders/delete"
payload = {
"path": "<string>",
"drive_id": "primary"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
