# Delete A Conversation

You can interact with this API by sending a `POST` request. This allows you to delete a Conversation in your Agency Account. Make sure this action cannot be undone.

\
**API Endpoint**

The following endpoint/URL should be used in order to access this API:

```
https://app.stammer.ai/en/chatbot/api/v1/conversation/your_conversation_uuid/deactivate/
```

**Request Headers**

The API must have the following request headers:

```
Content-Type: application/json
Authorization: Token <Your-API-Token>
```

\
**Request Example**

Here's an example of the request:

```python
import requests

# Define the API endpoint
url = "https://app.stammer.ai/en/chatbot/api/v1/conversation/your_conversation_uuid/deactivate/"

# Set up authentication and headers
headers = {
    'Authorization': 'Token <YOUR-API-TOKEN>',
    'Content-Type': 'application/json',
    'Accept': 'application/json'
}



response = requests.post(url, headers=headers)



# Process the response
if response.status_code in (200, 201, 202):
    result = response.json()
    print("Response data:", result)
else:
    try:
        error_data = response.json()
        error_message = error_data.get('message') or error_data.get('error', 'Unknown error')
        print(f"Error: {error_message}")
    except ValueError:
        print(f"Error: Status code {response.status_code}")
python
```

<figure><img src="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2FyfCtqDItQNpXGOGowZO0%2FScreenshot%202025-03-21%20at%201.41.41%E2%80%AFPM.jpg?alt=media&#x26;token=688a3dbd-7b99-4a20-8b74-1e94a0e1c468" alt=""><figcaption></figcaption></figure>

Learn More - <https://app.stammer.ai/en/api-docs/conversation-delete>
