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 / Not able to delete fil...
Power Automate
Unanswered

Not able to delete file from sharepoint

(0) ShareShare
ReportReport
Posted on by 14

Hi Team,

 

I need to delete file from sharepoint then file gets created when i export this cycle will continue everyday please help me out how to do it as it is throwing error even though file created 15hrs back in sharepoint. please help me out.

Thanks for help in advance.

 

Following are screen shot for reference 

Sajjad_Khan_1-1625460569611.png

In condition, I have file to delete please help me what to do if changes are required.

Sajjad_Khan_2-1625460678841.png

 

Sajjad_Khan_0-1625460529188.png

 

Thanks,

Sajjad

 

 

Categories:
I have the same question (0)
  • v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @Sajjad_Khan 

    Please try to use the below Uri and try again.

    vLilyWmsft_0-1625463551840.png

    Uri: _api/web/GetFileByServerRelativeUrl('/sites/lilytest/libraryABC/@{items('Apply_to_each')?['{FilenameWithExtension}']}')

    vLilyWmsft_1-1625463551848.png

     

    vLilyWmsft_2-1625463551855.png

    Hope the content above may help you.

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Sajjad_Khan Profile Picture
    14 on at

    Hi Team,

     

    I referred to this website too,

    https://www.cleverworkarounds.com/2021/02/21/how-to-clear-annoying-excel-file-locks-in-power-automate/comment-page-1/

     

    but did not get any valid answers.

     

    Please help me out

  • v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @Sajjad_Khan 

    Have you taken a try with the Uri I provided above?

    vLilyWmsft_0-1625551748485.png

    Best Regards

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 630

#2
Valantis Profile Picture

Valantis 420

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard