Skip to main content
Deletes a table, its definition, and every row in it.
The table and its rows can’t be recovered. Export the table first if you might need it. See Export to CSV.

Parameters

string
required
Project id from list_projects. You need write access.
string
required
The table to drop.

Result

string
The name of the dropped table.

Example

Arguments
Result

Errors

Tables referenced by foreign keys

You can’t drop a table while another table has a foreign key that points at it. The error names the referencing column:
Drop that column with drop_column, or drop the referencing table first. A foreign key from a table to itself doesn’t block dropping it.