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. Use the Get-SPManagedPath
cmdlet to review the names.
3.16.54.63