DeleteResult

The delete() call returns an array of DeleteResult objects. 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 the following 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.
© Copyright 2000–2014 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.