title: Firebase delete query result
body: <p>I have the following code that I'm trying to remove quiz records with:</p>
  
  <pre>
  <code>
    var authref = new Firebase("https://.firebaseio.com");
    var authData = authref.getAuth();
  
    var ref = new Firebase("https://.firebaseio.com/quiz");
    ref.orderByChild("uid").equalTo(authData.uid).on("value", function(snapshot) {
      snapshot.forEach(function(data) {
        var record = data.val(); 
        if(record["name"] == name)
        {
           ref.remove(record.ref());
        }
      });
    });
  
  </code>
  </pre>
  
  <p>I want to delete a quiz that belongs to the authenticated user and has the same name that is passed to the wrapper function.</p>
  
  <p>I know that I need to pass the reference URL of the quiz, but I'm not sure how to get the ID because it's auto-generated by Firebase. </p>
  
  <p>Below is an example of my data layout:</p>
  
  <pre>
  <code>
  quiz
   -KDATEVU4fU5OF55fCbP
   -KDOIReUla7Fj1K62x7S
   -KDOJ-oI0JYmCdWrqrx_
   -KDPr7deQ5BHQcTwQ_cG
      name: "question"
      passcode: "9876"
      questions
        -KDPr82WcFw-jfuPz3T1
           0
            ans: "s"
            attempts: 0
            correct: 0
            qtext: "a"
            wrong1: "d"
            wrong2: "f"
            wrong3: "g"
            uid: "1f72bd29-967c-446d-a6b9-37ec9de540e0"
   </code>
  </pre>
  
  <p>I'd be really grateful if anyone could help me out with this.</p>