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
Bill McBill Mc 

Message when uninstalling a package

Hello.  I am attempting to uninstall a package with Apex classes.  

However, I get the message  "[Class name] is in use by a queued or in progress Apex Batch or Sharing Recalculation and cannot be deleted."  for many of the Apex classes in the package.

We dont have any in-progress or queued Apex jobs so I dont know where to turn now. 

Can anyone help?

Many thanks,  Bill
Michael Bobee 4Michael Bobee 4
I'm guessing if the first option doesn't seem to apply,- try the second:A field that is referenced in the class might be included in a custom sharing rule.
Bill McBill Mc
Hi Michael Great tip! Where do I find Custom Sharing rules? Many thanks Bill
Michael Bobee 4Michael Bobee 4
Administration Setup->Sharing Settings. It's organized by object, so you can either pick a specific object from the picklist or scroll until you run into something that looks like a complicated sharing rule.