---
title: "Delete context-scoped dataset file"
method: DELETE
path: "/agents/{agentId}/datasets/context/{contextKey}/{contextValue}/{filename}"
tags: ["Datasets"]
---

# Delete context-scoped dataset file

`DELETE /agents/{agentId}/datasets/context/{contextKey}/{contextValue}/{filename}`

Delete a dataset file scoped to a context value.
Requires User Context to be enabled.

## Path parameters

- `agentId` string, required
- `contextKey` string, required
- `contextValue` string, required
- `filename` string, required

## Response `200`

File deleted successfully

- DatasetDeleteResponse
  - `file` string, required
  - `success` boolean, required
  - `error` string

---

[API](https://skmtc.net/inconvoai/apis/inconvo-conversations-api.md) · [All operations](https://skmtc.net/inconvoai/apis/inconvo-conversations-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/inconvoai/inconvo-conversations-api/revisions/2524aa5bde1f/schema)
