---
title: "Clear all data from an uploaded table"
method: POST
path: "/v1/uploads/{namespace}/{table_name}/clear"
---

# Clear all data from an uploaded table

`POST /v1/uploads/{namespace}/{table_name}/clear`

Removes all data from the specified uploaded table while preserving the table structure and schema.

## Path parameters

- `namespace` string, required
- `table_name` string, required

## Query parameters

- `api_key` string

## Headers

- `X-Dune-Api-Key` string, required

## Response `200`

OK

- ModelsTableClearResponse
  - `message` string

## Other responses

- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/dune/apis/duneapi.md) · [All operations](https://skmtc.dev/dune/apis/duneapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dune/duneapi/revisions/f3a7a865f95b/schema)
