delete method
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();
}
}