EmptyRecycleBinResult Class
The result of the emptyRecycleBin DML operation returned by the Database.emptyRecycleBin method.
A list of Database.EmptyRecycleBinResult objects is returned by the Database.emptyRecycleBin method. Each object in the list corresponds to either a record ID or an sObject passed as the parameter in the Database.emptyRecycleBin method. The first index in the EmptyRecycleBinResult list matches the first record or sObject specified in the list, the second with the second, and so on.
The following are methods for EmptyRecycleBinResult. All are instance methods.
-
If an error occurred during the delete for this record or sObject, returns a list of one or more Database.Error objects. If no errors occurred, the returned list is empty.
-
Returns the ID of the record or sObject you attempted to delete.
-
Returns
trueif the record or sObject was successfully removed from the Recycle Bin; otherwisefalse.
If an error occurred during the delete for this record or sObject, returns a list of one or more Database.Error objects. If no errors occurred, the returned list is empty.
public Database.Errors[] getErrors()
Type: Database.Errors []
Returns the ID of the record or sObject you attempted to delete.
public ID getId()
Type: ID
Returns true if the record or sObject was successfully removed from the Recycle Bin; otherwise false.
public Boolean isSuccess()
Type: Boolean