DeletePath Method  

Delete a virtual path from the specified virtual host.


object.DeletePath( HostId, VirtualPath )


An integer value which identifies the virtual host.
A string that specifies the virtual path to be removed. This path must be absolute and cannot be an empty string.

Return Value

A value of zero is returned if the virtual path was deleted. Otherwise, a non-zero error code is returned which indicates the cause of the failure.


This method removes a virtual path that was created by a previous call to the AddPath method.

See Also

LocalPath Property, VirtualPath Property, AddPath Method, CheckPath Method, ResolvePath Method