use this function for this purpose.
1.
class DatabaseService {
final String uid;
DatabaseService({this.uid});
final CollectionReference userCollection =
Firestore.instance.collection('users');
Future deleteuser() {
return userCollection.document(uid).delete();
}
}
2.
FirebaseUser user = await FirebaseAuth.instance.currentUser();
user.delete();