Hi Feroz, it is not possible to delete reports using dataloader, you can only extract reports data through Dataloader. The report object is a ReadOnly object if accessed by Dataloader or any other api tool.
You can use the inbuilt Mass Delete Report option from the setup menu or use either eclipse or some other IDE's to delete the reports in mass.
Hi Feroz, it is not possible to delete reports using dataloader, you can only extract reports data through Dataloader. The report object is a ReadOnly object if accessed by Dataloader or any other api tool.
You can use the inbuilt Mass Delete Report option from the setup menu or use either eclipse or some other IDE's to delete the reports in mass.
Delete private reports and folders in Data Loader Note: When running the delete operation in Data Loader, the 'Report' object is not visible. The steps to do this in Data Loader should be as follows: 1. Select Delete then log in. 2. Select any object from the 'Step 2: Select data objects' list. (Please note, the Report object will not be visible. Data Loader will only check the ID, and will not check which object this is running against, so it doesn't matter which object is selected.) 3. Click Browse then select your CSV file. Map the ID field. 4. When prompted, click OK if the number of records to be deleted is correct. 5. Click Create or Edit a Map. 6. Drag the ID field down to the ID row then click OK. 7. Click Next then select Browse to select the location of your success and error files. 8. Click Finish. 9. Click Yes at each prompt to proceed with the delete operation.
You might want to select this as the best answer ;)
Ramu is not the best answer here. I have tried Dileeps response and can confirm that you can in fact delete reports from Data Loader. Please follow his steps.
Dileep is very close in the response for best answer, but I ran into a small issue -- You must also ensure in the Data Loader Settings that Use Bulk API is NOT selected - then it works perfectly! Thank you!
Using Dileep's suggestion, Can we also delete the reports that has dashboards associated with them? Has anyone tried this already? Please confirm. Thanks !
Due to the annoying level of misinformation in the "best Answer" I have flagged it as "inappropriate". Thanks Dileep! I would never had tried that without you. PS I used a known unused object to operate with, just in case.
Article with all needed information: https://help.salesforce.com/s/articleView?id=000383270&type=1
You can use the inbuilt Mass Delete Report option from the setup menu or use either eclipse or some other IDE's to delete the reports in mass.
All Answers
You can use the inbuilt Mass Delete Report option from the setup menu or use either eclipse or some other IDE's to delete the reports in mass.
Through eclipse you can delete the reports or from the setup if it is soo many. Put all those reports in a folder and delete that folder.
Thanks
Now It is possible to delete reports using Data Loader and Workbench.
https://help.salesforce.com/articleView?id=How-to-delete-Reports-and-Dashboard-from-a-Personal-or-a-Private-Folder&language=en_US&type=1
Delete private reports and folders in Data Loader
Note: When running the delete operation in Data Loader, the 'Report' object is not visible. The steps to do this in Data Loader should be as follows:
1. Select Delete then log in.
2. Select any object from the 'Step 2: Select data objects' list. (Please note, the Report object will not be visible. Data Loader will only check the ID, and will not check which object this is running against, so it doesn't matter which object is selected.)
3. Click Browse then select your CSV file. Map the ID field.
4. When prompted, click OK if the number of records to be deleted is correct.
5. Click Create or Edit a Map.
6. Drag the ID field down to the ID row then click OK.
7. Click Next then select Browse to select the location of your success and error files.
8. Click Finish.
9. Click Yes at each prompt to proceed with the delete operation.
You might want to select this as the best answer ;)
Dileep's answer needs to be marked as best answer since Ramu's response could be misleading.
Sufia, YES, Dileep's process works for ANY ID in Salesforce, and I just deleted 21 Dashboards from inactive users.
Here are the two id queries. We do this quarterly at our business. FOR INACTIVE USERS ONLY: ID Field only, use result in dataloader.
Dashboard Query: SELECT Id FROM Dashboard USING SCOPE allPrivate WHERE RunningUser.IsActive = false
Report Query: SELECT Id FROM Report USING SCOPE allPrivate WHERE Owner.IsActive = false
Troy ~ Seattle
Due to the annoying level of misinformation in the "best Answer" I have flagged it as "inappropriate". Thanks Dileep! I would never had tried that without you. PS I used a known unused object to operate with, just in case.
Article with all needed information: https://help.salesforce.com/s/articleView?id=000383270&type=1
Dileep Katari -- Best Answer
Troy