Skip to content
Pivot is in early development and is not production ready. See Project status.

DROP TABLE

DROP TABLE removes a table from the catalog immediately. With vacuum: true, a running server deletes its stored files on the next hourly vacuum sweep after retention expires (four hours by default). The standalone shell does not run vacuum.

DROP TABLE IF EXISTS staging_events;
DROP TABLE [IF EXISTS] [[datastore.]schema.]table;

Qualify the table name with a schema and, optionally, a datastore. An unqualified name uses the default datastore and schema.

IF EXISTS permits the statement to succeed when the table is absent.

For a table in the analytics schema:

DROP TABLE analytics.events;

CASCADE is not supported.

Parquet files adopted from outside the table’s storage directory with with_pre_existing_parquets are not deleted.