+ Start a Discussion
penchala rajupenchala raju 

how do you empty the recyclebin in DML

Andy BoettcherAndy Boettcher
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_emptyrecyclebin.htm
rajesh gandirajesh gandi
there are number of DML operations are here.
In this delete()= for example we delete the record from our application we used. this record is deleted permanently. it's not going to recyclebin
Undelete()=  we delete the record from our application that record going to recyclebin and it stored 45 days


u got answer select best answer
SarfarajSarfaraj
You may empty your recyclebin by using emptyRecycleBin method of Database class. These are the variant of the method available,
  • Database.emptyRecycleBin(ID[])    Pass a list of Ids of the records that you want to permanently delete from recyclebin.
  • Database.emptyRecycleBin(sObject[])    Pass a list of sObjects of the records that you want to permanently delete from recyclebin.
  • Database.emptyRecycleBin(sObject)    Pass the sObject instance of the record that you want to permanently delete from recyclebin.
Nauman ShahidNauman Shahid
Does DataBase.emptyRecycleBin also counts towards DML Governor Limits?