---
title: "Delete a dataset"
method: DELETE
path: "/datasets/{id}"
tags: ["Private"]
---

# Delete a dataset

`DELETE /datasets/{id}`

Delete an existing dataset

## Path parameters

- `id` string, required

## Response `204`

The dataset was successfully deleted

## Other responses

- `401` — Unauthorised to delete the dataset
- `403` — Forbidden to delete dataset, already published
- `500` — Failed to process the request due to an internal error

---

[API](https://skmtc.net/office-of-national-statistics/apis/explore-our-data.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/explore-our-data/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/explore-our-data/versions/269ed359fb27/schema)
