Remove RemoteDirectory type.