---
title: "Delete a table"
method: DELETE
path: "/tables/{tableId}"
tags: ["tables"]
---

# Delete a table

`DELETE /tables/{tableId}`

Delete a table, this could be internal or external.

## Path parameters

- `tableId` string, required

## Headers

- `x-budibase-app-id` string, required

## Response `200`

Returns the deleted table.

- TableOutput
  - `data` object, required — The table to be created/updated.
    - `name` string, required — The name of the table.
    - `primaryDisplay` string — The name of the column which should be used in relationship tags when relating to this table.
    - `schema` object, required
    - `_id` string, required — The ID of the table.

---

[API](https://skmtc.net/budibase/apis/budibase-api.md) · [All operations](https://skmtc.net/budibase/apis/budibase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/budibase/budibase-api/versions/9c6f16fc652b/schema)
