TRUNCATE
Delete all rows from a table with minimal computation by restating the table with no data files.
note:
SyntaxThis command is not supported on Amazon Glue datasources.
TRUNCATE [ TABLE ] [ IF EXISTS ] <table_name>
Parameters
{{< sql-section file="data/sql/apache-iceberg-tables.json" data="truncatingData" >}}
Examples
Truncate a tableTRUNCATE myTable
TRUNCATE TABLE IF EXISTS myTable