Delete context entry
DELETE
/v1/context/{id}
const url = 'https://api.varman.io/v1/context/ctx_abc123def456';const options = {method: 'DELETE', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.varman.io/v1/context/ctx_abc123def456 \ --header 'X-API-Key: <X-API-Key>'Permanently removes a context entry from the organization. This action cannot be undone.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Example
ctx_abc123def456Context entry ID
Responses
Section titled “Responses”Context entry deleted successfully
Media typeapplication/json
object
message
string
deletedContext
object
id
string
question
string
authType
string
Example
{ "message": "Context entry deleted successfully", "deletedContext": { "id": "ctx_abc123def456", "question": "How do we handle user authentication in our application?" }, "authType": "apikey"}Unauthorized - Invalid or missing authentication
Media typeapplication/json
object
message
string
statusCode
number
Example
{ "message": "Unauthorized", "statusCode": 401}Context entry not found
Media typeapplication/json
object
message
string
statusCode
number
Example
{ "message": "Context entry with ID ctx_abc123def456 not found in organization org_xyz789uvw012", "statusCode": 404}Internal server error
Media typeapplication/json
object
message
string
statusCode
number
Example
{ "message": "Internal server error", "statusCode": 500}