# deletetable: Delete a data table

> deletetable (Delete a data table) is a 1001fx API function in the group Data tables: POST https://api.1001fx.com/datatables/deletetable, 1 credit per call. It works as a ready-made module in Make or as a plain HTTP call.

Deletes a data table with all its rows. This cannot be undone.

- Group: Data tables
- Endpoint: `POST https://api.1001fx.com/datatables/deletetable`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: application/json
- Credits: 1 credit per call
- Ready-made in: Make
- Docs: https://1001fx.com/functions/deletetable

## Parameters

- `table` (string, required) – Table: ID or name of the data table.

## Example: Delete a data table

```bash
curl -X POST 'https://api.1001fx.com/datatables/deletetable' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"table":"processed_orders"}'
```
