For AI agents: markdown of this page — /docs-content-en/apps/delete.md documentation index — /llms.txt

Delete an application

DELETE /v1/apps/:id

Deletes the application and revokes the paired API key. This is a soft delete: the application is hidden from the list, the catalog, and the Bitrix24 account handler; it cannot be restored via the API — create a new one if needed.

Parameters

Parameter Type Required Description
Parameterid (path) Typestring Requiredyes DescriptionApplication identifier from create or list

No request body is required — an empty body is allowed.

Examples

curl — personal key

Terminal
curl -X DELETE https://vibecode.bitrix24.com/v1/apps/APP_ID \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth application

Terminal
curl -X DELETE https://vibecode.bitrix24.com/v1/apps/APP_ID \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"

JavaScript — personal key

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/apps/APP_ID', {
  method: 'DELETE',
  headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})
if (res.status === 204) {
  console.log('Deleted')
}

JavaScript — OAuth application

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/apps/APP_ID', {
  method: 'DELETE',
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

Response

On successful deletion, the API returns HTTP status 204 No Content with an empty body. This response confirms deletion in Vibecode and revocation of the paired API key. Removal of the Bitrix24 application registration and placements may continue in the background; 204 alone does not confirm their disappearance from the account.

Response example

204 No Content (no body)

Error response example

409 — the paired key still owns active servers:

JSON
{
  "success": false,
  "error": {
    "code": "APP_HAS_ACTIVE_SERVERS",
    "message": "App key has active servers — rebind them first",
    "details": {
      "activeServerCount": 1,
      "userMessage": "This key manages 1 server. Rebind it to another key before deleting.",
      "servers": [
        {
          "id": "5d2940da-a968-4794-a5c1-239e310bf05e",
          "displayName": "Support bot",
          "name": "support-bot",
          "status": "ERROR",
          "ownerName": "Emma Wilson"
        }
      ]
    }
  }
}

ownerName is the name of the server owner. If the server has no owner, ownerName is null.

Errors

HTTP Code Description
HTTP403 CodeINFRA_FORBIDDEN_FOR_COWORK_KEY DescriptionThe call was made with a Cowork/Code key — such a key works with data only and cannot perform write operations. To issue a key that can, see Project key for deploy
HTTP403 CodeUNAUTHORIZED DescriptionThe call was made with an authorization key vibe_app_… issued for a different application. Such a key deletes only its own application, even when both applications were created by the same author
HTTP403 CodeUNAUTHORIZED DescriptionThe key does not belong to the author or owner of the application
HTTP403 CodeWRITE_BLOCKED_READONLY_KEY DescriptionThe key cannot modify Bitrix24 data, and the app does not qualify as its own. An app qualifies as the key's own if it was created by that key or, for Cowork seat keys, by any key for the same seat. For an authorization key, only its associated app qualifies. An app created in the dashboard does not qualify
HTTP403 CodeWRITE_BLOCKED_READONLY_KEY DescriptionThe key does not change Bitrix24 data, and the app could change Bitrix24 data: it has had a key allowed to write to Bitrix24 at least once. Removing such an app takes everything it created off the Bitrix24 account. The request is also rejected if the app's placements include one in an employee work screen, the placements are bound to a handler other than the platform handler, or the placement list could not be read from Bitrix24
HTTP404 CodeAPP_NOT_FOUND DescriptionNo application with the specified id. Repeated deletion of the same id also returns this code
HTTP409 CodeAPP_HAS_ACTIVE_SERVERS DescriptionThe paired key still owns active servers — rebind them to another key first. details carries activeServerCount, userMessage, servers

Full list of common API errors — Errors.

Known specifics

  • If the Bitrix24 placement list cannot be read or placement removal is unconfirmed, the application registration is retained until safe cleanup is possible. The platform retries verification and cleanup; after repeated failures, the interval reaches one day. These retries do not stop after six attempts.
  • For a cloud application without the placement permission, cleanup may use the verified application creator's developer key. The platform must fully read the placement list and confirm removal before unregistering the application. Insufficient permissions or an unavailable account can delay cleanup.
  • Repeated deletion is idempotent. A second DELETE of the same id returns 404 APP_NOT_FOUND — the application is already hidden by the soft delete. This is a normal response, not a failure: repeating the call is safe.

See also