oneWithID method

  1. @override
Future<void> oneWithID(
  1. Type type,
  2. String documentID, {
  3. String? subcollection,
})
override

Deletes a document from RDB by its type and document ID.

Implementation

@override
Future<void> oneWithID(Type type, String documentID, { String? subcollection }) {
  String path = RDB.constructPathForClassAndID(type, documentID, subcollection: subcollection);
  final reference = RDB.instance.ref(path);
  return reference.remove();
}