---
title: "Delete a data source"
method: DELETE
path: "/v1/data-sources/{dataSourceId}"
tags: ["Data Sources"]
---

# Delete a data source

`DELETE /v1/data-sources/{dataSourceId}`

Permanently deletes the specified ingestion data source (`dataSourceId`).

Deleting a data source also deletes all datasets it contains (and their data). **This action is irreversible.**

Requires a valid `x-api-key` with permission to manage data sources in the target account.

## Path parameters

- `dataSourceId` integer, required — Unique identifier for the data source.

## Response `200`

Successful response indicating that the data source and all contained datasets were permanently deleted.

- object
  - `requestId` string — Unique identifier for the request.
  - `status` string — Indicates the status of the request.
  - `message` string — Human-readable message describing the outcome of the request (for display/logging; not intended for programmatic parsing).

## Other responses

- `400` — Error response indicating one or more request parameters are invalid.
- `401` — Error response indicating that the API key is missing or invalid.
- `403` — Error response indicating that the user associated with the API key is not authorized to perform this action on the specified resource.

---

[API](https://skmtc.dev/databox/apis/databox-api.md) · [All operations](https://skmtc.dev/databox/apis/databox-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/databox/databox-api/revisions/8e7a3a444e6b/schema)
