# Delete a application by ID. Delete an application by its unique ID. Use the Get All Applications API to retrieve the application ID. ## Endpoints `DELETE /sse/api/applications/[0-9]+` ## Request URL ```text https://{server-hostname}:8383/sse/api/applications/[0-9]+ ``` ## Scope ```text SSE.DELETE ``` ## Header ```text Authorization: d92d4xxxxxxxxxxxxx15f52 ``` ## Request Parameters ### Request Headers - **Accept** `string` — Mandatory: `application/json` ## Sample Request ```curl curl --request DELETE \ --url 'https://appdomain/sse/api/applications/[0-9]+' \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP code 400 Response Body — `application/json` `JSON Object` - **errorCode** `string`: Application-specific error code (`API_APPLICATION_002`) indicating an unexpected error occurred while deleting the application - **errorMsg** `string`: Generic error message for the application deletion failure ### HTTP code 401 Response Body — `application/json` `JSON Object` - **errorCode** `long`: Unauthorized error code returned when authentication credentials are missing, expired, or invalid (`authentication=required`) - **errorMsg** `string`: Authentication failure reason ### HTTP code 403 Response Body — `application/json` `JSON Object` - **errorCode** `long`: Forbidden error code returned when the authenticated user does not have the required `uem-roles` (for example, `DataEncryption_Admin` or `DataEncryptionRecoveryKey_Admin`) - **errorMsg** `string`: Message indicating insufficient privileges to access this resource ### HTTP code 404 Response Body — `application/json` `JSON Object` - **errorCode** `string`: Application-specific error code (`API_APPLICATION_003`) indicating the application to be deleted does not exist in the database - **errorMsg** `string`: Message indicating the given Application was not found ## Possible Response Codes - `204` — HTTP code - `400` — HTTP code - `401` — HTTP code - `403` — HTTP code - `404` — HTTP code ## Sample Response: HTTP 204 ```text 204 No Content ``` ## Sample Response: HTTP 400 An unexpected error occurred during application deletion. ```json { "errorCode": "API_APPLICATION_002", "errorMsg": "Unknown error while adding application." } ``` ## Sample Response: HTTP 401 Authentication credentials are missing or invalid. ```json { "errorMessage": "You are not authorized to perform this action", "errorCode": "UNAUTHORIZED" } ``` ## Sample Response: HTTP 403 User does not have the required SSE_Write role. ```json { "errorMessage": "User does not have permission to perform this operation", "errorCode": "FORBIDDEN" } ``` ## Sample Response: HTTP 404 Application with the specified ID does not exist. ```json { "errorCode": "API_APPLICATION_003", "errorMsg": "Given Application is not found" } ```