---
title: "Purge report results"
method: POST
path: "/{workspace}/data_sources/{data_source}/purge"
---

# Purge report results

`POST /{workspace}/data_sources/{data_source}/purge`

## Request

- Base URL: `https://modeanalytics.com/api`
- URL: `https://modeanalytics.com/api/{workspace}/data_sources/{data_source}/purge`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/thoughtspot/apis/mode/docs/:workspace/data_sources/:data_source/purge/post.ts> (a function with typed inputs; its response is checked against the schema)

Removes all report results that use a data source

## Path parameters

- `workspace` string, required
- `data_source` string, required

## Response `202`

Accepted

- unknown

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: `DataSource` not found

---

[API](https://skmtc.dev/thoughtspot/apis/mode.md) - [All operations](https://skmtc.dev/thoughtspot/apis/mode/llms.txt) - [OpenAPI document](https://skmtc.dev/thoughtspot/apis/mode/revisions/4c694c3fdeb1?raw)
