+ Start a Discussion
santhosh  konsanthosh kon 

How to delete old reports by Batch Apex? plz send me the code?

Gaurav KheterpalGaurav Kheterpal
You don't really need batch Apex to do this.

In Setup, under Data Management > Mass Delete Records, select Mass Delete Reports and configure a filter (for example based on created date) to find reports that need to be deleted. Reports that you delete go into the recycle bin. They aren’t permanently deleted until you clear your recycle bin.

If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.

Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker