title | description | ms.reviewer | ms.topic | ms.date |
---|---|---|---|---|
.clear table data command |
Learn how to use the `.clear table data` command to clear data from an existing table. |
vrozov |
reference |
05/24/2023 |
Clears the data of an existing table, including streaming ingestion data.
Note
In the event of a partial success or failure, an exception is thrown with detailed information about the error.
You must have at least Table Admin permissions to run this command.
.clear
table
TableName data
[!INCLUDE syntax-conventions-note]
Name | Type | Required | Description |
---|---|---|---|
TableName | string |
✔️ | The name of the table for which to clear the data. |
The following example clears all of the data in the table named LyricsAsTable
.
.clear table LyricsAsTable data