Feb 18 2024 09:26 PM - edited Feb 18 2024 09:27 PM
Hello,
How can I delete folders of a library by using power automate periodically?
Thnx in advance!
Feb 19 2024 03:52 AM
Solution@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.
Feb 19 2024 04:35 AM
@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.
Feb 20 2024 03:36 AM
Feb 19 2024 03:52 AM
Solution@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.