title: How to delete a queue in YARN?
body: <p>I see a queue in the yarn configuration file that I want to delete:</p>
  
  <pre><code>&lt;property&gt;
    &lt;name&gt;yarn.scheduler.capacity.root.queues&lt;/name&gt;
    &lt;value&gt;a,b,c&lt;/value&gt;
    &lt;description&gt;The queues at the this level (root is the root queue).
    &lt;/description&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
    &lt;name&gt;yarn.scheduler.capacity.root.a.queues&lt;/name&gt;
    &lt;value&gt;a1,a2&lt;/value&gt;
    &lt;description&gt;The queues at the this level (root is the root queue).
    &lt;/description&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
    &lt;name&gt;yarn.scheduler.capacity.root.b.queues&lt;/name&gt;
    &lt;value&gt;b1,b2,b3&lt;/value&gt;
    &lt;description&gt;The queues at the this level (root is the root queue).
    &lt;/description&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>Say I want to remove queue <code>c</code>.  I remove <code>c</code> from the list under the line <code>&lt;name&gt;yarn.scheduler.capacity.root.queues&lt;/name&gt;</code> so that line looks like this: </p>
  
  <pre><code>&lt;value&gt;a,b,c&lt;/value&gt;
  </code></pre>
  
  <p>Then I go to the command line and run <code>yarn rmadmin -refreshQueues</code>.  </p>
  
  <p>But I get the following error message:</p>
  
  <pre><code>Caused by java.io.IOException: c cannot be found during refresh!`
  </code></pre>
  
  <p>I'm trying to delete the queue <code>c</code>.  How do I delete it?  </p>
  
  <p>I noticed <a href="https://hadoop.apache.org/docs/r2.7.2/hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html#Configuration" rel="nofollow noreferrer">here</a> it says that </p>
  
  <blockquote>
    <p>Note: Queues cannot be deleted, only addition of new queues is
    supported - the updated queue configuration should be a valid one i.e.
    queue-capacity at each level should be equal to 100%.</p>
  </blockquote>
  
  <p>...so, how do I delete a queue if I don't need it anymore?</p>
  
  <p>thanks.</p>