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.

EmptyRecycleBinResult

The emptyRecycleBin() call returns an array of EmptyRecycleBinResult objects. Each element in the array corresponds to an element in the ID[] array passed as the parameter in the emptyRecycleBin() call. For example, the object returned in the first index in the EmptyRecycleBinResult array matches the object specified in the first index of the ID[] array.

A EmptyRecycleBinResult object has the following properties:

Name Type Description
id ID ID of an sObject that you attempted to delete from the Recycle Bin. For information about IDs, see ID Field Type.
isSuccess boolean Indicates whether the call succeeded (true) or not (false) for this record.
errors Error[] If an error occurred during the call, an array of one or more Error objects providing the error information.