title: how to delete child record from firebase in swift?
body: <p>I wanted to delete this record in <code>firebase</code>, where i don't have the name of the key. so, I don't know how to do it. can anybody help me with this?</p>
  
  <p>The code for getting array is as follows</p>
  
  <pre><code>var databaseRefer : DatabaseReference!
    let userID = Auth.auth().currentUser?.uid
   databaseRefer = Database.database().reference(withPath: userID!)
   databaseRefer.observeSingleEvent(of: .value, with: { snapshot in
           if !snapshot.exists() { return }
            if snapshot.value is NSNull {
             print("not found")
              } else {
                  for child in snapshot.children {
                  let snap = child as! DataSnapshot
  
                     print(dict)
  
                     dict.forEach { item in
  
                         print(item.value)
                 }
               }
         }
     })
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/6DOwW.png" width="500" height="700"/></p>