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 machineEnvironment : string/PyUnicode
Environment - eg 'Windows NT x86' - use None for current client
environmentDriverName : string/PyUnicode
Name of driver to removeDeleteFlag : int
Combination of DPD_DELETE_SPECIFIC_VERSION, DPD_DELETE_UNUSED_FILES, and
DPD_DELETE_ALL_FILESVersionFlag : int
Can be 0,1,2, or 3. Only used if DPD_DELETE_SPECIFIC_VERSION is specified in DeleteFlag