In Azure Data Explorer, I am trying to remove rows from a table which the rows contain language == "en-us". Here’s the syntax:
.delete table tableName records <| tableName | where language == "en-us"
But I got this error:
"code": "BadRequest_SyntaxError", "message": "Request is invalid and cannot be executed.", "@type": "Kusto.Data.Exceptions.SyntaxException", "@message": "Syntax error: ",
What should be the right syntax? I followed this tutorial: https://techcommunity.microsoft.com/t5/azure-data-explorer-blog/deleting-individual-records-in-a-table/ba-p/3166847
2
Answers
I just tried out the below syntax and it went through fine:
.delete table tableName records <| tableName | where [‘language’] == "en-us"
The soft delete feature is only available on ADX clusters that are running on Engine V3. Refer the Limitations and considerations for deletion.
Reference: Azure Data Explorer Kusto EngineV3 | Microsoft Learn