I am trying to delete a file from Azure ADLS storage through Talend. Upon my checking, I couldn't find any option to connect to ADLS from Talend and delete a file or folder. As another option, I am trying to run a cURL command from Talend shell to delete using the ADLS API.
**
- ADLS Gen2 API reference
**: https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/delete
I have created a SAS token from the Storage account.
My cURL command looks like below.
curl -X DELETE -H "x-ms-date: Thu, 28 May 2020 05:51:37 GMT" https://account10.dfs.core.windows.net/testfolder/test1/test2/?<SAS Token>
I am trying to delete the files inside test2 folder.
When running, I am getting the below error.
{"error":{"code":"InvalidUri","message":"The request URI is invalid..
Can anyone help on the same.
Thanks Sathya
/
) in your path. Can you try by removing that? Try something likehttps://account10.dfs.core.windows.net/testfolder/test1/test2?<SAS Token>
. – Gaurav Mantri