---
updatedAt: 2026-11-02T11:52:32.000Z
agentTools:
  projectIndex: https://developers.kaleyra.io/llms.txt
---

# Delete a Subaccount

DELETE Method

Kaleyra.io offers an API that enables you to delete sub-account associated with a parent account. Deleting a sub-account can impact the tasks associated with it. For example, a scheduled campaign will be terminated.

If you delete a Subaccount the associated credit balance (if any) will be reverted to the parent account.

## Base URL

`https://<api_domain>/v1/<SID>`

## API Domain and Value

| api\_domain | Value             |
| :---------- | :---------------- |
| IN pod      | api.in.kaleyra.io |
| SG Pod      | api.ap.kaleyra.io |
| EU Pod      | api.eu.kaleyra.io |

## API request to delete sub-account

To delete a sub-account, use the `/subaccounts/<subaccount_sid>` endpoint with the following request method:

## Request Format

```curl
curl --location --request DELETE 'https://<api_domain>/api/v1/<sid>/subaccounts/<subaccount_sid>' \
--header 'api-key: <api-key>' \
--data-raw ''
```

The following table describes the parameter used for deleting sub-account:

| Parameter        | Data Type | Description                               | Applicable         | Mandatory | Example                        |
| :--------------- | :-------- | :---------------------------------------- | :----------------- | :-------- | :----------------------------- |
| `sid`            | String    | Parent account SID (Security Identifier). | Always applicable. | Yes       | HXXXXXXX071IN                  |
| `subaccount_sid` | String    | Subaccount SID (Security Identifier).     | Always applicable. | Yes       | HXXXXXXX071IN\_1707            |
| `api-key`        | String    | Parent account API key.                   | Always applicable. | Yes       | Axxxxxxxxxxxxxxxxxxxxxxxxxxxx3 |

## Sample Request

The following is the sample request:

```curl
curl --location --request DELETE 'https://api.in.kaleyra.io/api/v1/HXXXXXXX071IN/subaccounts/HXXXXXXX071IN_1707' \
--header 'api-key: Axxxxxxxxxxxxxxxxxxxxxxxxxxxx3' \
--data-raw ''
```

## Sample Success Response

The following is the sample success response for deleting the sub-account:

```json
{
  "code": "RBC2347",
  "message": "Account deleted successfully!",
  "data": {
    "account_name": "JOhn Doe",
    "balance": 0,
    "channels": [
      "sms"
    ],
    "email": "john.doe@tatacommunications.com",
    "low_balance_alert": false,
    "sid": "HXAXXXXXXXXXX4GL_117637",
    "status": "deleted",
    "subaccount_credit_type": "assigned"
  },
  "error": {},
  "status": 200
}
```

## Sample Failure Response

The following is a sample failure response:

```json
{
    "code": "RBC422",
    "message": "Access Denied! Unauthorized action!",
    "data": {},
    "error": {},
    "status": 401
}
```

For more information about response codes and statuses for deleting sub-account, see [Response Codes and Statuses for Deleting Subaccounts](https://developers.kaleyra.io/docs/platform-apis-response-codes-and-statuses#response-codes-and-statuses-for-deleting-subaccounts).