question

lsc2021 avatar image
0 Votes"
lsc2021 asked lsc2021 commented

How to recursively Delete sub folder from [Data Lake Storage Gen2] with logic apps

I use Delete path rest api to delete folders.
I can delete no sub forlder(exp: folder1). But could not recursively delete sub folder(exp: sub21, sub22).
The following error occurred during recursive deletion.
 Error Code:DirectoryIsNotEmpty
 Message:This operation is not permitted on a non-empty directory.

Forder sample:
 container
  |- folder1
  |_main
    |-sub21
    |_sub22



97298-httpdelete.png


azure-logic-appsazure-blob-storage
httpdelete.png (17.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@lsc2021 Thanks for raising this good question. I’m checking on this internally with the product team and will get back to you with something concrete. Apologies for the delay in responding here,

1 Vote 1 ·

1 Answer

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered lsc2021 commented

@lsc2021 Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

The request is being sent against blob endpoint. The delete path documentation is applicable for dfs end point. Please ensure the request is sent as {accountName}.dfs.core.windows.net/container/<path>;

Hope this helps!

Kindly let us know if the above helps or you need further assistance on this issue.


Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Sumarigo-MSFT
Thank you very much!
The folder was recursively deleted with URL[{accountName}.dfs.core.windows.net/container/<path>;].

0 Votes 0 ·