You can tear down the associated virtual machines from the cloud environment. Delete the record of a deployment from vCloud Application Director.

Removes provisioning for the vCloud Director vApp and associated virtual machines, vCloud Automation Center virtual machine and the associated virtual machine in vCenter Server , or Amazon EC2 instances and deletes them from the cloud environment. Provides task ID after the teardown process is complete.

The user account with the ROLE_DEPLOYER deployer role can access this API.

POST

https://ApplicationDirectorServerIP:8443/darwin/api/2.0/deployment/DeploymentID/teardown

You must type the URI syntax because the copy and paste operation removes formatting from the text.

Example URI syntax:

https://ApplicationDirectorServerIP:8443/darwin/api/2.0/deployment/6/teardown

The request body does not contain input for the teardown process.

{
  "errors": false,
  "messageList": [
    {
      "messageType": "INFO",
      "message": "Deployment teardown scheduled successfully.",
      "messageKey": "deployment.teardown.scheduled.msg",
      "property": null
    }
  ],
  "result": {
    "id": "11",
    "lockVersion": 1,
    "name": null,
    "description": null,
    "lastUpdated": 1378935530429,
    "lastUpdateUser": "admin",
    "created": 1378935530425,
    "createUser": "admin",
    "scheduled": 1378935530036,
    "startTime": null,
    "endTime": null,
    "runId": null,
    "updateType": null,
    "stateType": "TASK_SCHEDULED",
    "taskType": "TEARDOWN_TASK",
    "messages": [],
    "runStateType": null,
    "deploymentRef": {
      "uri": "/darwin/api/2.0/deployment/6",
      "id": "6",
      "name": "appd-Clustered Dukes Bank App-2.1.0-admin-6-b452d90c-b72e-4737-8f45-3c7540cf932c"
    },
    "deploymentNodes": []
  }
}

Deletes the details of a particular deployment from vCloud Application Director.

The user account with the ROLE_DEPLOYER deployer role can access this API.

DELETE

https://ApplicationDirectorServerIP:8443/darwin/api/2.0/deployment/DeploymentID

You must type the URI syntax because the copy and paste operation removes formatting from the text.

Example URI syntax:

https://ApplicationDirectorServerIP:8443/darwin/api/2.0/deployment/5
{
  "errors": false,
  "messageList": [
    {
      "messageType": "INFO",
      "message": "Successfully deleted Deployment.",
      "messageKey": "delete.msg",
      "property": null
    }
  ]
}