Share via


SharePoint Online SPOMod: Deny-SPOFileApproval

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

Deny-SPOFileApproval

Rejects approval of 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 ------

Deny-SPOFileApproval -ServerRelativeUrl "/sites/TeamsiteWithLibraries/uyyu/u8/fold3/u8 - CaptureYokoGroupCool2.PNG"

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

Deny-SPOFileApproval  "/sites/TeamsiteWithLibraries/uyyu/u8/fold3/u8 - CaptureYokoGroupCool2.PNG"

 

See Also

SPOMod Cmdlets and Resources 
Connect-SPOCSOM
Get-SPOList
Set-SPOFileCheckout