> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sublay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Drop Table

> Permanently drop a custom table and all of its rows

Drops a custom table.

> [!WARNING]
>
> **This is irreversible and takes every row with it.** A table's `paranoid` setting protects rows from deletion, not the table itself — dropping a paranoid table destroys its soft-deleted rows too.

> [!WARNING]
>
> **Service key required.**

## Path Parameters

**tableName** `string` *required*

Logical name of the table to drop — pass `orders`, not `custom_orders`. Only custom tables can be dropped here; a built-in or bundle table returns `database/table-not-found`.

## Response

**dropped** `string`

The logical name of the dropped table.

## Error Responses

> [accordion] Invalid Parameters — 400
>
> ```json theme={null}
> { "error": "Bad Request", "code": "database/invalid-params" }
> ```

> [accordion] Not A Custom Table — 400
>
> ```json theme={null}
> { "error": "Bad Request", "code": "database/not-a-custom-table" }
> ```

> [accordion] Elevated Auth Required — 403
>
> ```json theme={null}
> {
>   "error": "Service key required.",
>   "code": "auth/elevated-auth-required"
> }
> ```

> [accordion] Table Not Found — 404
>
> ```json theme={null}
> { "error": "Not Found", "code": "database/table-not-found" }
> ```

> [accordion] Server Error — 500
>
> ```json theme={null}
> { "error": "Internal Server Error", "code": "database/server-error" }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.