---
title: "Delete a user context"
method: POST
path: "/user/{userId}/context/{contextId}/delete"
tags: ["User"]
---

# Delete a user context

`POST /user/{userId}/context/{contextId}/delete`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/user/{userId}/context/{contextId}/delete`
- Auth: HTTP bearer

## Path parameters

- `userId` string, required: The ID of the user
- `contextId` string, required: The ID of the context to delete

## Request body

- object

## Response `200`

The context was deleted successfully

- object
  - `id` string, required: The ID of the deleted context

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
