Delete a File

How to delete a SharePoint Online file by serverRelativeUrl using a Power Automate flow.

URI

Headers

Body

Not applicable

Screenshot with example

Sample data
RelativePath – /sites/PowerUsers/Shared Documents/Document2.docx

deleteafile

Copy/paste example

Resources

Web.GetFileByServerRelativeUrl(String) Method

That’s it, Happy testing!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.