Scenario/Problem: You need to remove WOPI bindings from SharePoint.
Solution: Use the Remove-SPWOPIBinding
cmdlet.
The Remove-SPWOPIBinding
cmdlet has three different parameter sets that can be used to remove bindings. The simplest set removes all bindings and needs only the -All
switch parameter, as shown in Listing 26.4.
Remove-SPWOPIBinding -All
Provide a specific binding using the identity pipe parameter to remove a specific binding (as shown in Listing 26.5) or simply provide the same parameters to Remove-SPWOPIBinding
as you would to get the binding (as shown in Listing 26.6).
Get-SPWOPIBinding -Application "Excel" | Remove-SPWOPIBinding
Remove-SPWOPIBinding -Application "Excel"
Use the following parameters to identify a specific binding:
• Action
: String that specifies a specific action to return (such as view
or edit
)
• Application
: String that specifies a specific application to return (such as Excel
)
• Extension
: String that specifies a specific file extension to return (such as doc
or xls
)
• Server
: String that specifies a specific WOPI server to return
• WOPIZone
: String that specifies a specific zone to return
18.118.1.158