DosPrintQDel

The DosPrintQDel API deletes a printer queue from the spooler.

If a printer queue contains print jobs, DosPrintQDel marks the queue as PENDING DELETE so it cannot accept new print jobs. The queue is deleted when all jobs have been printed.