Home » Bigquery » Tutorials » DELETE statement

BigQuery DELETE statement

Deletes rows from a table

DELETE statement example

DELETE FROM dataset.Inventory
WHERE quantity = 0

DELETE with Subquery

DELETE FROM dataset.Inventory i
WHERE i.product NOT IN (SELECT product from dataset.NewArrivals)

To delete all rows

DELETE FROM dataset.Inventory
WHERE TRUE

Syntax reference

DELETE [FROM] target_name [alias]
WHERE condition