Share via


SharePoint Online SPOMod: Remove-SPOFile

This article describes a function of a custom SharePoint Online module available for download and installation on GitHub.

Remove-SPOFile

Removes a file.

Parameters

ServerRelativeUrl  Mandatory   The url of the file to be removed, e.g. "/sites/TeamsiteWithLibraries/uyyu/u8/fold3/u8 - CaptureYokoGroupCool2.PNG"

 

Examples

----- EXAMPLE 1 ------

Remove-SPOFile -ServerRelativeUrl ``"/sites/TeamsiteWithLibraries/uyyu/u8/fold3/testPic.PNG"

----- EXAMPLE 2 ------

The parameter is positional, so the same effect may be achieved without naming ServerRelativeUrl parameter:

Remove-SPOFile  ``"/sites/TeamsiteWithLibraries/uyyu/u8/fold3/testPic.PNG"

See Also