Delete Folder
Last updated Changelog
http
DELETE /crates/{handle}/folders/{folder}
Deletes the folder with everything in it and its snapshots, and its snapshot schedules. Every login loses it and those using it are disconnected; a sub-user left with no folder can’t sign in until it’s given one. A crate keeps at least one folder, so its last one is refused with 400.
Response
json
{ "message": "Folder deleted with its files and snapshots." }
Errors
Besides the errors any endpoint can return:
| Status | Code | When |
|---|---|---|
| 400 | invalid_state |
The resource’s state doesn’t allow this right now. error says why. |
| 400 | operation_rejected |
The server behind the API (mail, database, storage) or the registrar refused the operation. error says why. |
| 403 | scope_denied |
This API key does not have Crates write access for this crate. |
| 403 | service_inactive |
This crate is not active. |
| 404 | not_found |
Crate not found. Folder not found. |
| 502 | upstream_unavailable |
This crate has no storage node. |