[cups.development] Deleting printer using cups API

Michael Sweet msweet at apple.com
Mon Oct 3 11:06:53 PDT 2011


You cannot add or delete printers using the cupsSetDest API.

You'll need to send a CUPS_DELETE_PRINTER request using cupsDoRequest - see the lpadmin source code for an example.

On Oct 3, 2011, at 11:04 AM, Azuri wrote:

> I want to delete a printer using cups API.
> I am calling cupsRemoveDest and then cupsSetDest but looks like its not deleting the printer. what am I doing wrong?
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups-devel mailing list