oneWithID method

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

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

Implementation

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