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
Rita Leverett 2Rita Leverett 2 

Is it possible to delete private folders using the API?

My company wants to prevent users from using private folders for reports and dashboards. First they want to delete any empty private folders. I know this can't be done in the UI, but can it be accomplished in the API?
VinayVinay (Salesforce Developers) 
Hi Rita,

You can try using data loader in salesforce and below are steps.
  • Select Delete then log in.
  • 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.)
  • Click Browse then select your CSV file.  Map the ID field.
  • When prompted, click OK if the number of records to be deleted is correct.
  • Click Create or Edit a Map.
  • Drag the ID field down to the ID row then click OK.
  • Click Next then select Browse to select the location of your success and error files.
  • Click Finish.
  • Click Yes at each prompt to proceed with the delete operation.
Please mark as Best Answer if above information was helpful.

Thanks,