Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.31 KB

File metadata and controls

34 lines (29 loc) · 1.31 KB

#Remove-SPOJavaScriptLink Removes a JavaScript link or block from a web or sitecollection ##Syntax

Remove-SPOJavaScriptLink [-Force [<SwitchParameter>]] [-Scope <CustomActionScope>] [-Web <WebPipeBind>] -Name <String>

##Parameters

Parameter Type Required Description
Force SwitchParameter False Use the -Force flag to bypass the confirmation question
Name String True Name of the JavaScriptLink to remove
Scope CustomActionScope False Define if the JavaScriptLink is to be found at the web or site collection scope. Specify All to allow deletion from either web or site collection.
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Remove-SPOJavaScriptLink -Name jQuery

Removes the injected JavaScript file with the name jQuery from the current web after confirmation

###Example 2

PS:> Remove-SPOJavaScriptLink -Name jQuery -Scope Site

Removes the injected JavaScript file with the name jQuery from the current site collection after confirmation

###Example 3

PS:> Remove-SPOJavaScriptLink -Name jQuery -Scope Site -Force

Removes the injected JavaScript file with the name jQuery from the current site collection and will not ask for confirmation