FS DB Delete document

Advertisements
        //Getting instance
        FirebaseFirestore db = FirebaseFirestore.getInstance();


        //Getting Reference to "users" collection
        final DocumentReference docRef = db.collection("users").document("new doc");


        //Deleting document named "new doc"
        docRef.delete();