function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mark_pamark_pa 

Soft Delete via API

Can you soft delete a record via the API like you do in the UI in SalesForce?

 

I don't want to just remove something from the database, but am not sure if the IsDeleted column can be used for this.

 

Any help would be welcome!

Best Answer chosen by Admin (Salesforce Developers) 
*werewolf**werewolf*

Actually any delete using deleteIds via the API is a soft delete.  Try it: call deleteIds on some test ID.  It'll show up in your recycle bin.