Delete Snapshot
Last updated Changelog
http
DELETE /crates/{handle}/snapshots/{name}
Deletes the snapshot and frees its used_bytes. A schedule’s snapshots can be deleted too; the schedule takes its next one as usual.
Response
json
{ "message": "Snapshot deleted." }
Errors
Besides the errors any endpoint can return:
| Status | Code | When |
|---|---|---|
| 400 | operation_rejected |
The server behind the API (mail, database, storage) or the registrar refused the operation. error says why. |
| 403 | not_in_plan |
This plan doesn’t include snapshots. |
| 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. |
| 502 | upstream_unavailable |
This crate has no storage node. |