docs:smbdotconf: make formatting of headers uniform.
[Samba.git] / docs-xml / smbdotconf / printing / deleteprintercommand.xml
blobf9a9a47d673ee883470dac75b9686a596ab9203f
1 <samba:parameter name="deleteprinter command"
2                  context="G"
3                  type="string"
4                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
5 <description>
6     <para>With the introduction of MS-RPC based printer
7     support for Windows NT/2000 clients in Samba 2.2, it is now 
8     possible to delete a printer at run time by issuing the
9     DeletePrinter() RPC call.</para>
10                 
11     <para>For a Samba host this means that the printer must be 
12     physically deleted from the underlying printing system.  The
13     <smbconfoption name="deleteprinter command"/> defines a script to be run which 
14     will perform the necessary operations for removing the printer
15     from the print system and from <filename moreinfo="none">smb.conf</filename>.
16     </para>
17                 
18     <para>The <smbconfoption name="deleteprinter command"/> is 
19     automatically called with only one parameter: <smbconfoption name="printer name"/>.
20         </para>
21                 
22     <para>Once the <smbconfoption name="deleteprinter command"/> has 
23     been executed, <command moreinfo="none">smbd</command> will reparse the <filename moreinfo="none">
24     smb.conf</filename> to check that the associated printer no longer exists.
25     If the sharename is still valid, then <command moreinfo="none">smbd
26     </command> will return an ACCESS_DENIED error to the client.</para>
27 </description>
29 <related>addprinter command</related>
30 <related>printing</related>
31 <related>show add printer wizard</related>
33 <value type="default"></value>
34 <value type="example">/usr/bin/removeprinter</value>
35 </samba:parameter>