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 / How to Perform File Ma...
Power Automate
Unanswered

How to Perform File Maintenance on Windows File Server Using Power Automate

(0) ShareShare
ReportReport
Posted on by 29

How does one create a Flow that will do file maintenance (ie delete feels created> X days ago)  when the files are on a windows file server and can this be done without using Desktop Power Automate? 

 

Currently we have access over a VPN to a windows file server that is on another network (owned by our software vendor). I regularly go into a sub-directory on this file server and delete files that were crated greater than 7 days ago. I access the sub-directory via a mapped rive that uses the local IP address on the Vendors side of the VPN (ie \\10.xx.xx.xx\Directory1\Directroy2\DirectoryX\ ) . 

 

Is there way that power automate can be used to automate this process? If yes can it be done without using the Desktop version of Power automate? If you have any examples (ie videos or articles) detailing how to do something like these please share them.  So far all I've seen for power automate and file maintenance is for only those things stored in/on SharePoint, OneDrive or a site like DropBox; nothing for good old fashioned local file server. 

 

Thanks

Categories:
I have the same question (0)
  • kierian Profile Picture
    Microsoft Employee on at

    Hello 

    that example can help 

    Solved: Delete files older than 3 years - Power Platform Community (microsoft.com)

     

  • eric-cheng Profile Picture
    5,171 on at

    Hi @edcarden ,

     

    Just adding to the reply above. 

     

    To access a file server, you need to specifically use the Filesystem connector here and have a data gateway set up here.

     

    Here is a video on setting up a data gateway.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • edcarden Profile Picture
    29 on at

    Thank you. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard