var doc = this.afs.collection('/documents', ref => ref.where('docID', '==', docID));
Using the above code i get the document the user wants successfully, however not sure on how to then delete that document. I have tried the obvious .doc().delete(), however that needs a path for the doc itself.
is there a way to delete all documents (1) from this query and delete them
CodePudding user response:
You can do const db = this.afs.firestore
and then do what Frank describes in his answer.