win32file.DeleteVolumeMountPoint

DeleteVolumeMountPoint(VolumeMountPoint)

Unmounts the volume from the specified volume mount point.

Parameters

VolumeMountPoint : PyUnicode

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

This method requires Windows 2000 or later. On earlier platforms, NotImplementedError will be raised.

Example

Usage

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