new bulk(sObject, attrs, options, state) → {Operation}
Delete records of an object.
Parameters:
Name | Type | Description |
---|---|---|
sObject |
String | API name of the sObject. |
attrs |
Object | Array of IDs of records to delete. |
options |
Object | Options for the destroy delete operation. |
state |
State | Runtime state. |
- Source:
Returns:
- Type
- Operation
Example
destroy('obj_name', [
'0060n00000JQWHYAA5',
'0090n00000JQEWHYAA5
], { failOnError: true })