delete method

Future<T> delete(
  1. String id, {
  2. String? callRole,
})

Delete an entity Usage:

var result = await service.delete('<entity_id>');

Implementation

Future<T> delete(String id, {String? callRole}) {
  String formattedPath = _crud.formatPathFromParts(
    [_crud.baseUrl, callRole ?? _crud.requestRole, _crud.path, id],
  );

  return this.delete(formattedPath);
}