Delete a deployment
DELETE
/v1/apps/{appName}/deployments/{deploymentName}
const url = 'https://api.aetherpush.com/v1/apps/example/deployments/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.aetherpush.com/v1/apps/example/deployments/example \ --header 'Authorization: Bearer <token>'Permanently deletes the deployment and its release history. Cannot be undone. Requires the deployments.manage permission (Owner or Admin).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”appName
required
string
deploymentName
required
string
Responses
Section titled “Responses”Deployment deleted.
Insufficient permissions (deployments.manage required).
Media typeapplication/json
object
error
required
Human-readable error message.
string
requestId
Unique identifier for the request, also exposed as the X-Request-Id response header.
string
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}App or deployment not found.
Media typeapplication/json
object
error
required
Human-readable error message.
string
requestId
Unique identifier for the request, also exposed as the X-Request-Id response header.
string
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}