Delete a deploy version
DELETE
/v1/deploys/{deployId}/versions/{deployVersionId}
const url = 'https://api.presscloud.example/v1/deploys/example/versions/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.presscloud.example/v1/deploys/example/versions/example \ --header 'Authorization: Bearer <token>'Deletes a deploy version record. The current latest version cannot be deleted.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” deployId
required
string
deployVersionId
required
string
A concrete deploy version id or the virtual pointer latest.
Responses
Section titled “ Responses ”Deploy version deleted.
Invalid request payload or parameters.
Media type application/json
object
error
required
string
message
required
string
Example generated
{ "error": "example", "message": "example"}Requested resource was not found.
Media type application/json
object
error
required
string
message
required
string
Example generated
{ "error": "example", "message": "example"}Requested operation conflicts with the current resource state.
Media type application/json
object
error
required
string
message
required
string
Example generated
{ "error": "example", "message": "example"}