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

Community site session details

Session Id : 9BT0BcVuQB0XDI1KnyAWIq
Power Automate - Using Flows
Unanswered

Not able to delete file from sharepoint

Like (0) ShareShare
ReportReport
Posted on 5 Jul 2021 04:52:25 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

 

 

  • v-LilyW-msft Profile Picture
    on 06 Jul 2021 at 06:10:06
    Re: Not able to delete file from sharepoint

    Hi @Sajjad_Khan 

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

    vLilyWmsft_0-1625551748485.png

    Best Regards

  • Sajjad_Khan Profile Picture
    14 on 05 Jul 2021 at 08:26:14
    Re: Not able to delete file from sharepoint

    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
    on 05 Jul 2021 at 05:41:43
    Re: Not able to delete file from sharepoint

    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.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow