---
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.

## Changes

- **2023-07-20** `5b3a605c6d99` — 1 warning
  - added the new `bigint` enum value to the `data/schema/additionalProperties/oneOf[subschema #3]/type` response property for the response status `200`
- **2023-03-06** `7de0ab0187e0` — 1 breaking, 1 info
  - added `subschema #1, subschema #2, subschema #3` to the `data/schema/additionalProperties/` response property `oneOf` list for the response status `200`
  - removed `subschema #1, subschema #2, subschema #3` from the `data/schema/additionalProperties/` response property `oneOf` list for the response status `200`

[Change history](https://skmtc.dev/budibase/apis/budibase-api/changes/tables/:tableId/delete.md)

---

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