Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
DeleteResult
Each element in the DeleteResult array corresponds to the ID[] array passed as the ids parameter in the delete() call. For example, the object returned in the first index in the DeleteResult array matches the object specified in the first index of the ID[] array.
A DeleteResult object has these properties.
| Name | Type | Description |
|---|---|---|
| id | ID | ID of an sObject that you attempted to delete. For information on IDs, see ID Field Type. |
| success | boolean | Indicates whether the delete() call succeeded (true) or not (false) for this object. |
| errors | Error[] | If an error occurred during the delete() call, an array of one or more Error objects providing the error information. |