---
title: "DELETE /{userId}/dataSources/{dataSourceId}/datasets/{datasetId}"
method: DELETE
path: "/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}"
tags: ["users"]
---

# DELETE /{userId}/dataSources/{dataSourceId}/datasets/{datasetId}

`DELETE /{userId}/dataSources/{dataSourceId}/datasets/{datasetId}`

Performs an inclusive delete of all data points whose start and end times have any overlap with the time range specified by the dataset ID. For most data types, the entire data point will be deleted. For data types where the time span represents a consistent value (such as com.google.activity.segment), and a data point straddles either end point of the dataset, only the overlapping portion of the data point will be deleted.

## Path parameters

- `userId` string, required
- `dataSourceId` string, required
- `datasetId` string, required

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/fitness.md) · [All operations](https://skmtc.net/google/apis/fitness/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/fitness/versions/036f4db4a779/schema)
