
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.
You may find that a deleted Salesforce record is not visible in the Recycle Bin, even though it still appears when you run an Export All through Data Loader or another API tool. When you attempt to restore or undelete the record via API, you receive the following error:
UNDELETE_FAILED Entity is not in the recycle bin
This article explains the two main scenarios that cause a deleted record to disappear from the Recycle Bin and how to recover or recreate the record.
When a record is deleted in Salesforce, it is placed into the Recycle Bin in a soft deleted state and can be restored through the user interface without issue.
However, there are specific circumstances in which a deleted record no longer appears in the Recycle Bin:
If a record is a child (detail) record in a Master-Detail relationship, and the parent record is deleted after the child record is deleted, the child record transitions to a hard deleted state. In this scenario, the child record cannot be recovered and must be recreated manually.
If a record is a child (detail) in a Master-Detail relationship and the parent record is deleted, the child record is also soft deleted but is not visible in the Recycle Bin. To recover the child record, you must first restore the parent record. The child record is recovered automatically when the parent is restored. You cannot recover the child record independently of the parent.
Once a record is in hard deleted status, it is no longer visible in the Salesforce user interface (UI). However, for a limited time, the record may still appear through API tools such as Data Loader. After this window closes, the record is permanently gone and must be recreated.
Restore multiple records that are in Recycle Bin
View, Restore, and Manage the Recycle Bin in Salesforce Classic
View and Restore Your Recycle Bin in Lightning Experience
Use Schema Builder to identify and query object relationship fields for delete performance.
000386040