Skip to main content
Removes a column from a table, along with its values in every row.
The column’s data 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
Table name.
string
required
The column to drop. Can’t be id or created_at.

Result

The table’s updated definition. Same shape as the describe_table result.

Example

Arguments
Result

Errors

Notes

  • If the column has a foreign key, the foreign key is removed with it.
  • A table must keep at least one column besides id and created_at. To remove the last one, use drop_table.