delete method

void delete(
  1. String id
)

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();