Remove a Managed Path
Scenario/Problem: You need to delete a managed path from a specific web application on your SharePoint farm.
Solution: Use the Remove-SPManagedPath
cmdlet.
Using the Remove-SPManagedPath
cmdlet enables you to remove a managed path from the specified web application, as shown in Listing 4.13.
Remove-SPManagedPath -Identity "departments"-WebApplication "SharePoint - 80"
Tip
You may also remove a managed path using the HostHeader
parameter instead of the WebApplication
parameter. Remove-SPManagedPath
has two parameter sets for this purpose.
The Identity
parameter is simply the name of the relative URL used to generate the managed path, which becomes the name of the managed path. ...
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.