title: Delete node firebase in react
body: <p>I'm building a blog in react and trying to add some functionality to delete the entire blog from memory where it is stored in realtime database on firebase but can't seem to get the remove function working.</p>
  <p>I've read the API but it doesn't really elaborate on the .remove method and I'm struggling to get it functioning. At the moment I'm getting to the point of accessing the right file passed by blogID but removing it doesn't seem to work!</p>
  <p>Hoping someone might be able to point out the correct way to remove the data  as the other posts I've also looked at haven't really helped.</p>
  <p>At the moment this is what I have:</p>
  <pre><code>export async function handleDelete(blogID) {
    const dbRef = await ref(getDatabase());
    const getBlog = await get(child(dbRef, `blogs/${blogID}`));
    getBlog.remove;
  }
  </code></pre>