The Remove-WebServicesVirtualDirectory cmdlet removes an existing virtual directory from an Exchange 2007 Client Access server. You can remove the default Exchange Web Services (EVS) virtual directory or another Exchange Web Services virtual directory.
To run the Remove-WebServicesVirtualDirectory cmdlet, the account you use must be delegated the Exchange Server Administrator role and membership in the local Administrators group for the target server.
For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.