Showing results for 
Search instead for 
Did you mean: 
New Member

NotFound - Delete file (SPO)

Hi guys, 


how are you? I need a little help right here. I'm trying to delete a file located in my shared library under one more folder as you can see in the screenshot based on previous outputs. I'm still getting an error: 




"body":{"status":404,"message":"File /sites/TestSite/Zdielane dokumenty/Ok/CSP_Monthly07.xlsm doesn't exist.\r\nclientRequestId: eafd3dcb-367f-413c-8168-303d43d510cf\r\nserviceRequestId: 9351e89f-e010-3000-2b95-a1d4d17a6300","source":"'%2fsites%2fTestSite%2fZdielane+dokumenty%2fOk%2fCSP_Monthly07.xlsm'","errors":["-2130575338","Microsoft.SharePoint.SPException"]}}



However file exists in the sharepoint library ( don't be confused by "Zdielane dokumenty" it's shared documents in my language. 


Basically I'm gathering a file name based on previous month which goes by: /Zdielane%20dokumenty/Ok/CSP_Monthly@{body('PreviousMonthByCalculatedTime')}.xlsm


Output is: /Zdielane%20dokumenty/Ok/CSP_Monthly07.xlsm


At the end of that I'm replacing "/" with "%2f" by this expression: replace(outputs('GetFileUrlMonthly'),'/','%2F')




Any idea where could be a problem? 

All other parts of the flow except file deletion works fine. 


Thanks a lot!


Super User
Super User

Hi @m_konecny 


Please see this thread


Solved: Re: SharePoint - Delete file - Power Platform Community (



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up

Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,356)