web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow failed to delete ...
Power Automate
Unanswered

Flow failed to delete files from SharePoint folders and subfolders which are older than 4years

(0) ShareShare
ReportReport
Posted on by 2

Hi,

I am trying to create a flow which tries to delete files older than 4 years but sometimes runs successfully without any output or sometimes gets failed. can anyone please help.

and also these folders have unique permissions and i dont want to break those permissions is there any other way?

 

AnishC_1-1677078420778.png      

AnishC_2-1677078526842.png

 

Result: 

1:

AnishC_3-1677078593044.png

2:

AnishC_4-1677078922263.png

 

 

Categories:
  • spmofulton Profile Picture
    66 on at

    I suspect that has to do with how your sharepoint or one-drive is setup.   You may need to be an administrator over the sharepoint to run such a deletion command (or have write permissions to every sharepoint folder)

     

    I assume that you want to delete to save disk space? 

     

    Sharepoint One Drive Business frequently has issues archiving and deleting documents older than 30 days.   It is so bad that generally by default a sharepoint is setup to limit who can delete things permanently.  There are often policies by default turned on to prevent this.  Instead it goes to a recycling bin.(*)   For example my organization has a policy that it doesn't go to the recycling bin at all, but is simple "unshared".

    I would speak with whoever, is supposed to be in charge of your Azure instance or does Azure Cybersecurity about this deletion as there are plenty of good reason to have permanent deletion set up.   HIPPA is the biggest reason. 

    Good luck and hopefully someone else with more insight can reply. 

  • AnishC Profile Picture
    2 on at

    Thank you for the response.

     

    yes its for the SharePoint site and i have full control on the site and added myself as site administrator but still the flow skips these particular folders not sure why.

  • TC416 Profile Picture
    40 on at

    I am trying to create a workflow that does similar.  Have you resolved the issue?  Would appreciate if you could share the solution or workaround?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard