win32print.DeletePrinterDriverEx

DeletePrinterDriverEx(Server, Environment, DriverName, DeleteFlag, VersionFlag)

Deletes a printer driver and its associated files

Parameters

Server : string/PyUnicode

Name of print server, use None for local machine

Environment : string/PyUnicode

Environment - eg 'Windows NT x86' - use None for current client environment

DriverName : string/PyUnicode

Name of driver to remove

DeleteFlag : int

Combination of DPD_DELETE_SPECIFIC_VERSION, DPD_DELETE_UNUSED_FILES, and DPD_DELETE_ALL_FILES

VersionFlag : int

Can be 0,1,2, or 3. Only used if DPD_DELETE_SPECIFIC_VERSION is specified in DeleteFlag