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

# Hard Delete Examples

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

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v1/platform/datasets/examples/delete`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

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

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/platform/datasets/examples/delete/post.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
