---
title: "Delete an application"
method: DELETE
path: "/applications/{id}"
tags: ["Applications"]
---

# Delete an application

`DELETE /applications/{id}`

## Request

- Base URL: `https://api.customdomain.ai/v1`
- URL: `https://api.customdomain.ai/v1/applications/{id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Deletes one of your applications together with what belongs only to it: its API keys stop working, and its webhook endpoints, share links and settings are removed. Needs an admin or owner key (it revokes keys). Another tenant's application is a 404.

Refused with `409` when deleting would break something that works, each with the reason in `details`: `default_application` (your workspace's default application, the oldest one: the signup key and your team's access belong to it, so it also keeps your last application), `application_key_in_use` (the key making the request belongs to this application) and `application_has_domains` (it still has domains, in any state; disconnect them first with `DELETE /connections/{id}`).

## Path parameters

- `id` string, required

## Response `204`

Deleted

## Other responses

- `401`: Error envelope: {code, title, details}.
- `403`: Error envelope: {code, title, details}.
- `404`: Error envelope: {code, title, details}.
- `409`: Error envelope: {code, title, details}.

---

[API](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api.md) · [All operations](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/revisions/34d89cb7a7cd?raw)
