delete method

Future<bool> delete({
  1. String? collectionId,
})

Implementation

Future<bool> delete({String? collectionId}) async {
  return ControllerManager.getCollectionController(
          collectionId ?? defaultCollection)
      .removeModelById(getId());
}