delete method
Implementation
@override
Future delete(ApiRequest request) async {
if (!allowDelete) {
throw ApiRequestException.methodNotAllowed();
}
final id = _findId(request.route);
if (id == null) {
throw ApiRequestException.badRequest('Missing id');
}
return await deleteElement(request, id);
}