Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

 

 

  • v-LilyW-msft Profile Picture
    on at
    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 at
    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 at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow