---
updatedAt: 2025-07-15T17:28:56.000Z
agentTools:
  projectIndex: https://developers.kaleyra.io/llms.txt
---

# Delete Flow

DELETE Method

Kaleyra platform's Delete Flow API allows you to delete the drafted flow based on Flow ID.

> 📘 Note:
>
> You cannot delete the WhatsApp Flow in the published stage. After publishing the WhatsApp Flow you can deprecate the flow. For more information, see [Deprecate Flow](https://developers.kaleyra.io/docs/whatsapp-flow-api-v2-deprecate-flow).

## Prerequisites

1. Before you get started, [Create an API Key](https://developers.kaleyra.io/docs/generating-an-api-key). To view the API Key and the SID, see[ View API Key and SID](https://developers.kaleyra.io/docs/view-api-key-and-sid).\
   A prerequisite for using Kaleyra WhatsApp APIs is to have an active WhatsApp plan on Kaleyra platform.
2. To set up a WhatsApp account on Kaleyra platform, see [Manual Signup](https://developers.kaleyra.io/docs/manual-signup)\
   and [Embedded Signup](https://developers.kaleyra.io/docs/embedded-signup).
3. An active WhatsApp for Business API plan that includes:
   * A WhatsApp business number.
   * An associated profile with the business number.
   * A WhatsApp verified and approved profile.
   * A WABA ID onboarded on Kaleyra WhatsApp API V2.

## Base URL

`https://<api_domain>/v2/<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 WhatsApp Flow

To delete WhatsApp Flow, use the `https://<api_domain>/v2/<sid>/whatsapp/<flow_id>` endpoint with the following request method.

## Request Format

The following is the request format to delete WhatsApp Flow:

```curl
curl --location --request DELETE 'https://<api_domain>/v2/<sid>/whatsapp/<flow_id>' \
--header 'api-key: <api-key>' \
--header 'Content-Type: application/json'
```

## Sample Request Format

The following is the sample request format to delete a WhatsApp Flow:

```curl
curl --location --request DELETE 'https://api.in.kaleyra.io/v2/HXAP16XXXXXX97IN/whatsapp/112xxxxxxxxxx207' \
--header 'api-key: Axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3' \
--header 'Content-Type: application/json'
```

## URL Parameters and Headers

The following is the list of parameters and headers to send the outgoing message request:

| Parameter / Headers | Data Type | Description                                                                                                                                                                                           | Example                                     | Mandatory? |
| :------------------ | :-------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------ | :--------- |
| `sid`               | String    | Account SID (Security Identifier).                                                                                                                                                                    | HXAP16XXXXXX97IN                            | Yes        |
| `flow_id`           | String    | WhatsApp flow ID generated while creating the flow. For more information on how to create a WhatsApp Flow ID, see [Create Flow](https://developers.kaleyra.io/docs/whatsapp-flow-api-v2-create-flow). | `112xxxxxxxxxx207`                          | Yes        |
| `api-key`           | String    | API key generated from kaleyra.io account.                                                                                                                                                            | Axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3           | Yes        |
| `Content-Type`      | String    | Indicates the format of the content the API will be processing.                                                                                                                                       | The only allowed value is application/json. | Yes        |

## Sample Success Response

The following success message appears with the status 200 Accepted:

```json
{
  "success": true
}
```

## Sample Failure Response

The following are the failure responses:

```json
401 Unauthorized
{
    "code": "RBC001",
    "message": "Incorrect SID or API key.",
    "data": [],
    "error": {
        "error": "Incorrect SID or API key."
    }
}
```

```json
401 Wrong account
{
    "code": "WA-401",
    "message": "API is not available for given customer.Please contact support for more info",
    "data": {},
    "error": "API is not available for given customer.Please contact support for more info"
}
```

```json
400 Incorrect payload
{
    "code": "WA-400",
    "message": "Refer to correct payload format",
    "data": {},
    "error": {
        "payload": "Incorrect payload format"
    }
}
```

```json
500 Internal Server Error
{
    "code": "WA-500",
    "message": "Please try again later",
    "data": {},
    "error": {
        "error": "Internal server error"
    }
}
```

```json
{
    "code": "WA-401",
    "message": "The flow_id either does not exist or does not belong to the account.",
    "data": {},
    "error": {
        "flow_id": "The flow_id either does not exist or does not belong to the account."
    }
}
```