win32print.DeletePrinter

DeletePrinter(hPrinter)

Deletes an existing printer

Parameters

hPrinter : PyPrinterHANDLE

Handle to printer as returned by win32print::OpenPrinter or win32print::AddPrinter

Comments

Printer handle must be opened for PRINTER_ACCESS_ADMINISTER If there are any pending print jobs for the printer, actual deletion does not happen until they are done