Delete a file version or cancel a pending upload
DELETE/api/v1/buckets/:bucketId/files/:fileId/versions/:versionId
Requires contributor role or above on this bucket. Permanently deletes an uploaded version, or cancels a version that is still being uploaded. The current version cannot be deleted. Version numbers are never reused.
Request
Responses
- 204
- 401
- 403
- 404
- 409
Version deleted or upload cancelled
Not authenticated. Note: a missing or invalid token is rejected with 403 FORBIDDEN (not 401); 401 is returned when the token's session has been revoked (SESSION_REVOKED).
Missing/invalid token, or the caller's role/group is below the required minimum (FORBIDDEN)
File or version not found (FILE_NOT_FOUND, FILE_VERSION_NOT_FOUND)
The version cannot be deleted in its current state (FILE_VERSION_NOT_DELETABLE), or it is the current version (FILE_VERSION_IS_CURRENT)