Documentation Version
Winter '16 (API version 35.0)
  • Winter '16 (API version 35.0) 35.0
  • Summer '15 (API version 34.0) 34.0
  • Spring '15 (API version 33.0) 33.0
  • Winter '15 (API version 32.0) 32.0
  • Summer '14 (API version 31.0) 31.0
  • Spring '14 (API version 30.0) 30.0
  • Winter '14 (API version 29.0) 29.0
  • English


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.