win32file.DeleteVolumeMountPoint

DeleteVolumeMountPoint(VolumeMountPoint)

Unmounts the volume from the specified volume mount point.

Parameters

VolumeMountPoint : string

The mount point to delete - must have a trailing backslash.

Comments

Accepts keyword args.

Throws an error if it is not a valid mount point, returns None on success.
Use carefully - will remove drive letter assignment if no directory specified

Example

Usage

DeleteVolumeMountPoint('h:\\tmp\\')