deleteUser method
- String userEmail
Deletes user.
Implementation
Future<void> deleteUser(String userEmail) async {
final snapshot = await firestore
.collection('users')
.where('email', isEqualTo: userEmail)
.get();
final userDoc = snapshot.docs.first;
final userRef = userDoc.reference;
await userRef.delete();
}