[][src]Function firestore_db_and_auth::documents::delete

pub fn delete<'a, BEARER>(
    auth: &'a mut BEARER,
    path: &str,
    fail_if_not_existing: bool
) -> Result<()> where
    BEARER: FirebaseAuthBearer<'c>, 

Deletes the document at the given path.

Arguments

  • 'auth' The authentication token
  • 'path' The relative collection path and document id, for example "my_collection/document_id"
  • 'fail_if_not_existing' If true this method will return an error if the document does not exist.