title: Firestore : Document has children, must specify -r or --shallow
body: <p>I wanted to delete an entire collection in firestore.</p>
  
  <p>I used the firebase command - <code>firebase firestore:delete product/</code></p>
  
  <blockquote>
    <p>Error: Must pass recursive or shallow option when deleting a collection.</p>
  </blockquote>
  
  <p>Again tried - <code>firebase firestore:delete product/1</code></p>
  
  <blockquote>
    <p>Error: Document has children, must specify -r or --shallow.</p>
  </blockquote>
  
  <p>Please help me know, what does <strong><em>-r</em></strong> and <strong><em>-shallow</em></strong> means? </p>
  
  <p><em>Which option should I preferably choose for bulk delete of entire collection using firebase command? I need to delete the entire docs inside the collection.</em></p>