---
title: "Delete dataset file (deprecated)"
method: DELETE
path: "/datasets/{filename}"
tags: ["Datasets"]
deprecated: true
---

# Delete dataset file (deprecated)

`DELETE /datasets/{filename}`

> **Deprecated.**

**Deprecated**: Use `DELETE /datasets/user/{userIdentifier}/{filename}` instead.

Delete a dataset file using userIdentifier query parameter.

## Path parameters

- `filename` string, required

## Query parameters

- `userIdentifier` string, required

## Response `200`

File deleted successfully

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

## Changes

- **2026-01-21** `c0068facc07b` — 1 breaking, 1 warning, 1 info
  - added the new required `query` request parameter `userIdentifier`
  - deleted the `query` request parameter `userContext`
  - endpoint deprecated
- **2026-01-15** `b59ae9e9a8ec` — 1 breaking, 1 warning
  - added the new required `query` request parameter `userContext`
  - deleted the `query` request parameter `context`
- **2026-01-11** `67262931d818` — 2 breaking, 2 info
  - removed the required property `filename` from the response with the `200` status
  - removed the required property `message` from the response with the `200` status
  - added the optional property `error` to the response with the `200` status
  - added the required property `file` to the response with the `200` status
- **2026-01-10** `c8602011f840` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/inconvoai/apis/inconvo-conversations-api/changes/datasets/:filename/delete.md)

---

[API](https://skmtc.dev/inconvoai/apis/inconvo-conversations-api.md) · [All operations](https://skmtc.dev/inconvoai/apis/inconvo-conversations-api/llms.txt) · [OpenAPI document](https://skmtc.dev/inconvoai/apis/inconvo-conversations-api/revisions/c0068facc07b?raw)
