pub async fn delete(
auth: &impl FirebaseAuthBearer,
path: &str,
fail_if_not_existing: bool,
) -> Result<()>
Expand description
Deletes the document at the given path.
You cannot use this directly with paths from list
and query
document metadata objects.
Those contain an absolute document path. Use abs_to_rel
to convert to a relative 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.