DeleteByExampleResult

The deleteByExample() call returns an array of DeleteByExampleResult objects.

Each element in the DeleteByExampleResult array corresponds to the sObject[] array passed in the deleteByExample() call. For example, the object returned in the first index in the DeleteByExampleResult array matches the sObject specified in the first index of the sObject[] array.

A DeleteByExampleResult object has these properties.

NameTypeDescription
entitysObjectDetails for the sObject that you attempted to delete.
rowCountlongIndicates the number of rows that were deleted.
successbooleanIndicates whether the deleteByExample() call succeeded (true) or not (false) for this object.
errorsError[]If an error occurred during the deleteByExample() call, an array of one or more Error objects providing the error information.