delete method

  1. @override
Future<String?> delete(
  1. String path
)
override

Deletes a Firestore document at the specified path.

  • path: The path to the document to delete.

Implementation

@override
Future<String?> delete(String path) async {
  try {
    await datasource.doc(path).delete();
    return null;
  } catch (e) {
    return e.toString();
  }
}