oneWithID method
Deletes a document from RDB by its type and document ID.
Implementation
@override
Future<void> oneWithID(Type type, String documentID, { String? subcollection }) {
final String? className = RDB.classNames[type];
if (className == null) {
throw UnsupportedError('No class name found for type: $type. Consider re-generating Firestorm data classes.');
}
String path = RDB.constructPathForClassAndID(className, documentID, subcollection: subcollection);
final reference = RDB.instance.ref(path);
return reference.remove();
}