delete method
Method to delete a document from the collection.
Parameters:
id
: The ID or path of the document to be deleted.
Example:
collectionRef.delete('123');
Implementation
void delete(String id) => document(id).delete();
Method to delete a document from the collection.
Parameters:
id
: The ID or path of the document to be deleted.Example:
collectionRef.delete('123');
void delete(String id) => document(id).delete();