delete method

Future delete()

Implementation

Future delete() {
  if (this.id != null) {
    return this
        .repository
        .deleteById(id: this.id as String, database: this.database);
  }

  return this.repository.deleteAll();
}