Hello @Sundar Sriram Garimella and welcome to Microsoft Q&A.
I see you are getting a rather frusterating error when you try to delete from a Data Lake Gen2. Then when you try the solutions implied in the error message, the situation does not improve.
First, I think the message may be misleading. If you have Blob Event triggers on this account, then the account MUST support BlobStorageEvents. Therefore BlobStorageEvents cannot be the cause. Given how things didn't change when you disabled Soft Delete, that cannot be the cause either.
In common with both errors, is the status code 'Conflict'
. I went to the document page for the equivalent REST API call, and searched for "Conflict".
https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/delete
There are a number of possible causes, mainly centered around:
- trying to delete something that is already in the process of being deleted or already is deleted
- Leases
- a mixed usage of blob api and data lake api.
Let us verify it isn't the last one. Does your storage account have Heirarchical Namespace enabled? If yes, you should be using Data Lake Gen2 connector. If no, you should use Azure Blob Storage connector.
Are you trying to delete a file or a folder/directory?
If all else fails, I will make available a support ticket so engineers can look into the logs using the ActivityID. Let me know whether you have a support plan or not.