---
title: "Delete deployment package"
method: DELETE
path: "/apps/{appId}/packages/{packageId}"
tags: ["packages"]
---

# Delete deployment package

`DELETE /apps/{appId}/packages/{packageId}`

## Request

- Base URL: `https://privatecloud.mendixcloud.com/api/v4`
- URL: `https://privatecloud.mendixcloud.com/api/v4/apps/{appId}/packages/{packageId}`
- Auth: API key in header `Authorization`

Delete a deployment package.

## Response `202`

The job response returned by a get-job request. The Location header is populated once the job has been created successfully

- Job: Model for jobs.
  - `id` string, required: The ID of a JobRequest.
  - `status` 'running' | 'finished' | 'failed' | 'created', required: `created` - a job has been created but has not been picked up for processing <br/> `running` - the job is being processed <br/> `finished` - the job has finished processing <br/> `failed` - something went wrong and the job processing failed
  - `details` string
  - `packageId` string, uuid: Only present if the JobRequest was for building or uploading a deployment package.
  - `error` ErrorBody: The body of an error object explaining what happened.
    - `code` integer: The HTTP status code.
    - `message` string: Explanation of what happened.
  - `log` Log: Model for log.
    - `build` string: The build log for the deployment package. Can be used to debug potential issues encountered when creating the deployment package. Visibile only when the log query parameter is set to true.

## Other responses

- `401`: There were no usable authentication credentials found. The error response gives additional feedback.
- `403`: Access is denied. The provided credentials are incorrect or the credentials do not have the required level of access. The error response gives additional feedback.
- `404`: The requested item could not be found. The error response gives additional feedback.

---

[API](https://skmtc.dev/mendix/apis/private-cloud-build-api.md) - [All operations](https://skmtc.dev/mendix/apis/private-cloud-build-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mendix/apis/private-cloud-build-api/revisions/a16f9abda480?raw)
