Skip to contentSkip to page list

Docs

Archive a dataset

Archive a dataset (soft-delete)

DELETE/api/v1/dataset/{slugOrId}
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/dataset/<slugOrId>"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,}​response = requests.delete(    origin + path,    headers=headers,)print(response.json())

Success

application/json · Generated from schema

{  "id": "string",  "archived": true}
api-reference/datasets/delete-dataset

Authorization

X-Auth-Tokenstringheaderrequired

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Path parameters

slugOrIdstringrequired

Responses

200

Success

application/json

idstringrequired
archivedbooleanrequired
Alwaystrue

Documentation