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
Taresh PandeyTaresh Pandey 

​How to Delete mass queue and their records. ?

Hey All,

I'm stuck with a problem- There are more than 5000 queue records in my account and I wanna delete all the queue which are not seen by any user. How can I make this possible by Apex code or is there any other solution to delete enormous number of queues. ?
Thank you all in advance.

Regards'
Taresh Pandey
Carlos Campillo GallegoCarlos Campillo Gallego
Hi Taresh,

When you say queue records, you mean that the owner of those records is this problematic queue you want to get rid of, am I right?
If so, there is no need on using apex code, you can perform the operation using just Dataloader, first exporting the IDs of those records whose owner is this queue and then deleting using the csv you have just generated when you exported the IDs.

Regards,