amqp-delete-queue.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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:info@rabbitmq.com"><email>info@rabbitmq.com</email></ulink>&gt;</corpauthor>
  12. </authorgroup>
  13. <date>&date;</date>
  14. </refentryinfo>
  15. <refmeta>
  16. <refentrytitle>amqp-delete-queue</refentrytitle>
  17. <manvolnum>1</manvolnum>
  18. <refmiscinfo class="manual">RabbitMQ C Client</refmiscinfo>
  19. </refmeta>
  20. <refnamediv>
  21. <refname>amqp-delete-queue</refname>
  22. <refpurpose>Delete a queue from an AMQP server</refpurpose>
  23. </refnamediv>
  24. <refsynopsisdiv>
  25. <cmdsynopsis>
  26. <command>amqp-delete-queue</command>
  27. <arg choice="opt" rep="repeat">
  28. <replaceable>OPTION</replaceable>
  29. </arg>
  30. <arg choice="req">-q <replaceable>queue name</replaceable></arg>
  31. </cmdsynopsis>
  32. </refsynopsisdiv>
  33. <refsect1>
  34. <title>Description</title>
  35. <para>
  36. <command>amqp-delete-queue</command> deletes a queue from
  37. an AMQP server, and exits after printing to standard
  38. output the number of messages that were in the queue at
  39. the time of its deletion.
  40. </para>
  41. </refsect1>
  42. <refsect1>
  43. <title>Options</title>
  44. <variablelist>
  45. <varlistentry>
  46. <term><option>-q</option></term>
  47. <term><option>--queue</option>=<replaceable class="parameter">queue name</replaceable></term>
  48. <listitem>
  49. <para>
  50. The name of the queue to delete.
  51. </para>
  52. </listitem>
  53. </varlistentry>
  54. </variablelist>
  55. </refsect1>
  56. <refsect1>
  57. <title>Exit Status</title>
  58. <para>
  59. If the queue was successfully deleted, the exit status is
  60. 0. If an error occurs, the exit status is 1.
  61. </para>
  62. </refsect1>
  63. <refsect1>
  64. <title>Examples</title>
  65. <variablelist>
  66. <varlistentry>
  67. <term>Delete the
  68. queue <quote><systemitem class="resource">myqueue</systemitem></quote>
  69. at a moment when it has 123 messages waiting on
  70. it:</term>
  71. <listitem>
  72. <screen><prompt>$ </prompt><userinput>amqp-delete-queue -q myqueue</userinput>
  73. 123</screen>
  74. </listitem>
  75. </varlistentry>
  76. </variablelist>
  77. </refsect1>
  78. <refsect1>
  79. <title>See also</title>
  80. <para>
  81. <citerefentry><refentrytitle>librabbitmq-tools</refentrytitle><manvolnum>7</manvolnum></citerefentry>
  82. describes connection-related options common to all the
  83. RabbitMQ C Client tools.
  84. </para>
  85. </refsect1>
  86. </refentry>