Lifecycle Management Policy for Azure Data Lake Gen 2 does NOT remove folders?

Viewed 123

I got some files stored in an Azure Data Lake Gen 2 storage account. I've set a lifecycle policy so that files are deleted after 2 days. The files are successfully deleted after said period, but of course, the folders aren't deleted, even when the folder ends up empty.

Is there some way to instruct the policy to delete the folder once it ends up empty? The problem is that I'm ending up with a lot of orphaned folders after the deletion takes place.

Thanks!

0 Answers
Related