how to get the id of the document for deletion from firestore code example
Example: firestore delete document by id
const res = await db.collection('cities').doc('DC').delete();
const res = await db.collection('cities').doc('DC').delete();