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.

Listing 4.13. Removing a Managed Path


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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.54.63