Forum Discussion
omergunduz
Feb 19, 2024Copper Contributor
Deleting Folders in a Specific Library by using Power Automate
Hello,
How can I delete folders of a library by using power automate periodically?
Thnx in advance!
omergunduz You have to use the scheduled Power automate flow. Use flow like:
You 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.
Reference: Run 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.
3 Replies
Sort By
omergunduz You have to use the scheduled Power automate flow. Use flow like:
You 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.
Reference: Run 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.
- omergunduzCopper ContributorI added ... and Created le 'addDays(utcNow(),-3,'yyyy-MM-dd')' to the filter and we are done.
- omergunduzCopper Contributor
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.