deleteAll static method
delete all models
in axelor backend
This is a specialized delete service besides the standard REST service to delete records in bulk.
params:
baseDomain
: boolean flag to detrmine prefix of model if true
will generate /com.axelor. + model
if false
will generate AxelorBuilder.domain + model
model
: model name in axelor backend
endPoint
: if no sufficient method provide to create end point, you can provide end point directly
withAuth
: if true
add token in header
params
: query params
headers
: http headers
records
: list of AxelorVersionModel new record object
Implementation
static Future<AxelorResult<AxelorListModel<AxelorVersionModel>>> deleteAll({
required bool baseDomain,
required String model,
required List<AxelorVersionModel> records,
String? endPoint,
bool withAuth = true,
Map<String, dynamic>? params,
Map<String, dynamic>? headers,
}) {
_checkInitialize();
return _getInstance().deleteAll(
baseDomain: baseDomain,
model: model,
endPoint: endPoint,
headers: headers,
params: params,
withAuth: withAuth,
records: records,
);
}