---
title: "Hard Delete Examples"
method: POST
path: "/v1/platform/datasets/examples/delete"
tags: ["examples"]
---

# Hard Delete Examples

`POST /v1/platform/datasets/examples/delete`

This endpoint hard deletes *all* versions of a dataset example(s).
Deletion is performed by setting inputs, outputs, and metadata to null and deleting attachment files while keeping the example ID, dataset ID, and creation timestamp.
IMPORTANT: attachment files can take up to 7 days to be deleted. inputs, outputs and metadata are nullified immediately.

## Request body

- ExamplesDeleteExamplesRequest
  - `example_ids` string[], required — ExampleIDs is a list of UUIDs identifying the examples to delete.
  - `hard_delete` boolean, required — HardDelete indicates whether to perform a hard delete. Currently only True is supported.

## Response `200`

OK

- ExamplesExamplesDeletedResponse
  - `count` integer
  - `example_ids` string[]

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
