Activity Forums Salesforce® Discussions Can We Mass Delete Reports Using Apex (anonymous Apex)?

  • Prachi

    Member
    September 11, 2018 at 2:00 pm

    Hi ,

    We can not mass delete reports using Anonymous Apex but it can be possible by using following step:

    In Setup, under Data Management | Mass Delete Records, select Mass Delete Reports and configure a filter to find reports that need to be deleted.

    Thanks

  • Anurag

    Member
    September 11, 2018 at 2:05 pm

    Hi Anjali,

    As of now, no such functionality exists in Salesforce.

  • shariq

    Member
    September 11, 2018 at 3:03 pm

    Hi,

    Salesforce has not exposed any API for Reports. So best way is :

    • Move all reports needs to delete in new folder.
    • Inform everyone that reports will be deleted after some time may be 30 days.
    • Import your reports folder in Eclipse including all reports to be deleted and then delete the the reports folder in eclipse. It will delete all the reports at once.

    Hope this helps!

  • Parul

    Member
    September 12, 2018 at 4:55 am

    Hi

    Salesforce has not exposed any API for Reports so We Mass Delete Reports by moving all reports to in new folder and then import your reports folder in Eclipse including all reports to be deleted and then delete the reports folder in eclipse. It will delete all the reports at once.

     

    Thanks

Log In to reply.

Popular Salesforce Blogs