title: Get First Element from Collection and delete it
body: <p>I need to get the first element from a Firebase Collection and then delete it, but can't figure out how to do it. I need it for a cloud function.</p>
  
  <pre><code>await ref
        .doc(ref.limit(1).get().docs[0]);
  </code></pre>