How to delete/clear data from a Kusto table from a python script?

Viewed 813

Can we delete data from a Kusto table using purge or clear in a python script using Azure Data Explorer Python SDK?

I'm unable to achieve the data deletion using azure-kusto-data or azure-kusto-ingest packages. Is there a way to achieve this?

1 Answers

You'll have to run a purge query with azure-kusto-data using KQL.

kusto_client.execute(DB_NAME, purge_query)
Related