I am trying to delete a document using the new firebase V9 and I am not sure what the syntax should be.
The example from the firebase documentation doesn't include information about how to delete a document based on the document ID, which I need to do.
The code I am attempting to use is this:
deleteDoc(doc(db, theDocument.id))
but I get this error:
runtime-core.esm-bundler.js?9e79:7053 Uncaught FirebaseError: Invalid document reference. Document references must have an even number of segments, but rkv has 1.
the rkv is the document id, so it is accurately pulling the id of the document I want to delete. But it's not performing the delete, it's throwing the error.
Would love some help thanks.