deleteprinter command (G)With the introduction of MS-RPC based printer
support for Windows NT/2000 clients in Samba 2.2, it is now
possible to delete printer at run time by issuing the
DeletePrinter() RPC call.For a Samba host this means that the printer must be
physically deleted from underlying printing system. The
deleteprinter command defines a script to be run which
will perform the necessary operations for removing the printer
from the print system and from smb.conf.
The deleteprinter command is
automatically called with only one parameter:
"printer name".Once the deleteprinter command has
been executed, smbd will reparse the
smb.conf to associated printer no longer exists.
If the sharename is still valid, then smbd
will return an ACCESS_DENIED error to the client.See also
addprinter command, printing,
show add
printer wizardDefault: noneExample: deleteprinter command = /usr/bin/removeprinter