Debian Codegraph @

tools/doc/amqp-delete-queue.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.docbook.org/xml/4.5/docbookx.dtd"
3 [
4 <!ENTITY date SYSTEM "man-date.ent" >
5 ]
6 >
7 <refentry lang="en">
8 <refentryinfo>
9 <productname>RabbitMQ C Client</productname>
10 <authorgroup>
11 <corpauthor>The RabbitMQ Team &lt;<ulink url="mailto:[email protected]"><email>[email protected]</email></ulink>&gt;</corpauthor>
12 </authorgroup>
13 <date>&date;</date>
14 </refentryinfo>
15
16 <refmeta>
17 <refentrytitle>amqp-delete-queue</refentrytitle>
18 <manvolnum>1</manvolnum>
19 <refmiscinfo class="manual">RabbitMQ C Client</refmiscinfo>
20 </refmeta>
21
22 <refnamediv>
23 <refname>amqp-delete-queue</refname>
24 <refpurpose>Delete a queue from an AMQP server</refpurpose>
25 </refnamediv>
26
27 <refsynopsisdiv>
28 <cmdsynopsis>
29 <command>amqp-delete-queue</command>
30 <arg choice="opt" rep="repeat">
31 <replaceable>OPTION</replaceable>
32 </arg>
33 <arg choice="req">-q <replaceable>queue name</replaceable></arg>
34 </cmdsynopsis>
35 </refsynopsisdiv>
36
37 <refsect1>
38 <title>Description</title>
39 <para>
40 <command>amqp-delete-queue</command> deletes a queue from
41 an AMQP server, and exits after printing to standard
42 output the number of messages that were in the queue at
43 the time of its deletion.
44 </para>
45 </refsect1>
46
47 <refsect1>
48 <title>Options</title>
49 <variablelist>
50 <varlistentry>
51 <term><option>-q</option></term>
52 <term><option>--queue</option>=<replaceable class="parameter">queue name</replaceable></term>
53 <listitem>
54 <para>
55 The name of the queue to delete.
56 </para>
57 </listitem>
58 </varlistentry>
59 </variablelist>
60 </refsect1>
61
62 <refsect1>
63 <title>Exit Status</title>
64 <para>
65 If the queue was successfully deleted, the exit status is
66 0. If an error occurs, the exit status is 1.
67 </para>
68 </refsect1>
69
70 <refsect1>
71 <title>Examples</title>
72 <variablelist>
73 <varlistentry>
74 <term>Delete the
75 queue <quote><systemitem class="resource">myqueue</systemitem></quote>
76 at a moment when it has 123 messages waiting on
77 it:</term>
78 <listitem>
79 <screen><prompt>$ </prompt><userinput>amqp-delete-queue -q myqueue</userinput>
80 123</screen>
81 </listitem>
82 </varlistentry>
83 </variablelist>
84 </refsect1>
85
86 <refsect1>
87 <title>See also</title>
88 <para>
89 <citerefentry><refentrytitle>librabbitmq-tools</refentrytitle><manvolnum>7</manvolnum></citerefentry>
90 describes connection-related options common to all the
91 RabbitMQ C Client tools.
92 </para>
93 </refsect1>
94 </refentry>