SOLVED

Deleting Folders in a Specific Library by using Power Automate

Copper Contributor

Hello,

 

How can I delete folders of a library by using power automate periodically?

 

Thnx in advance!

3 Replies
best response confirmed by omergunduz (Copper Contributor)
Solution

@omergunduz You have to use the scheduled Power automate flow. Use flow like: 

ganeshsanap_0-1708343408924.pngYou will have to manually add the display name of your document library in "Delete item" action with the help of "Enter custom value" option. Also, set the recurrent timings and interval as per your requirements.

 

ReferenceRun flows on a schedule 


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

@ganeshsanap thank you very much! Your suggestion works fluently. However, I only need to delete folder created 30 days ago. How can I add this additional condition? Thank you again for your valuable effort.

I added ... and Created le 'addDays(utcNow(),-3,'yyyy-MM-dd')' to the filter and we are done.
1 best response

Accepted Solutions
best response confirmed by omergunduz (Copper Contributor)
Solution

@omergunduz You have to use the scheduled Power automate flow. Use flow like: 

ganeshsanap_0-1708343408924.pngYou will have to manually add the display name of your document library in "Delete item" action with the help of "Enter custom value" option. Also, set the recurrent timings and interval as per your requirements.

 

ReferenceRun flows on a schedule 


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

View solution in original post