/
Working with the Recycle Bin in Salesforce

This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Working with the Recycle Bin in Salesforce

The Recycle Bin allows you to view and restore recently deleted records for a maximum of 15 days before they are permanently deleted. To purge records from the Recycle Bin so that they cannot be restored, use salesforce.emptyRecycleBin and specify the following properties. 

emptyRecycleBin
<salesforce.emptyRecycleBin config-ref="connectorConfig">
    <allOrNone>0</allOrNone>
    <sobjects xmlns:sfdc="sfdc">{//sfdc:sObjects}</sobjects>
</salesforce.emptyRecycleBin>
Properties
  • allOrNone: Whether to rollback changes if an object fails (see Common Parameters).
  • sobjects: XML representation of the records to purge from the Recycle Bin.
Sample
<payloadFactory>
   <format>
      <sfdc:sObjects xmlns:sfdc="sfdc">
         <sfdc:Ids>0019000000aaMkZ</sfdc:Ids>
         <sfdc:Ids>0019000000aaMkP</sfdc:Ids>
      </sfdc:sObjects>
   </format>
   <args/>
</payloadFactory>

<salesforce.emptyRecycleBin>
    <allOrNone>0</allOrNone>
    <sobjects xmlns:sfdc="sfdc">{//sfdc:sObjects}</sobjects>
</salesforce.emptyRecycleBin>

Related content

Managing Retention
Managing Retention
More like this
Retention
More like this
Process Instance Cleanup
Process Instance Cleanup
More like this
Process Instance Cleanup
Process Instance Cleanup
More like this
Process Instance Cleanup
Process Instance Cleanup
More like this