# Delete a deployed app

> API reference for deleting an app deployed in a folder.

Deletes an app deployed in a folder.

## API endpoint

`DELETE` `<BaseURL>/models/deployed/apps/{deployedAppId}`

See [Base URL](https://docs.uipath.com/apps/automation-cloud/latest/api-guide/base-url) for the root endpoint path.

## Request headers

| Header | Value |
| --- | --- |
| **Authorization** | Bearer `<access_token>` |
| **X-UiPath-Internal-TenantId** | `<tenant_id>` |
| **X-UiPath-FolderKey** | `<folder_key>` |

:::note
Replace all the values between the angle brackets `<...>` with their corresponding use-case values.

The `<access_token>` is the one you received when you authorized the external application with the `Apps` or `Apps.Write` scope. It is available for 1 hour, then you need to generate a new one, or request a refresh token.
:::

## Path variables

| Path variable | Data type | Description |
| --- | --- | --- |
| **deployedAppId** (required) | `string` | The deployment ID of the app to delete. |

## Responses

### 204 No Content

The deployed app was successfully deleted. The response has no body.

### 400 Bad Request

The `X-UiPath-Internal-TenantId` or `X-UiPath-FolderKey` header is missing.

### 401 Unauthorized

You are not authenticated. Make sure you are using a valid access token with the `Apps` or `Apps.Write` scope.

### 403 Forbidden

You don't have permission to delete deployed apps in the specified folder.

### 404 Not Found

No deployed app with the specified deployment ID exists in the specified tenant and folder. A second delete of the same deployment ID also returns this response.
