You need to sign in to do that
Don't have an account?
Kou Xiong
How to removed non-coverage code from production?
I have some triggers and classes that we no longer use that was pushed to production by the previous admin. These codes have no coverage or don't meet the coverage requirement.
How would I remove these? I've already tried Eclipse and Workbench but all came back with errors because of failed tests.
How would I remove these? I've already tried Eclipse and Workbench but all came back with errors because of failed tests.
Information here (https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/daas_destructive_changes.htm)
You could also use this in combination with the Salesforce CLI. This takes quite a bit of reserach, especially if you haven't used it before as there is setup and a learning curve.
If you need to remove the code from the code base until those classes can be removed, then you can simply comment out the unused code. Which I would recommend doing first anyways before truly deleting the classes.
There is no need to use any other software for deleting your trigger and apex classes from production.
If you know the names of those classes, then you can simply search the apex trigger from Setup and delete those triggers from there.
Also, search Apex classes in the setup and delete those classes.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com
I tried the destructiveChanges method but because our org is under the 75% code coverage, it won't allow any deletes or changesets to be pushed.
Deepali,
Can't delete from production because of code coverage being under 75%. Deleting from sandbox doesn't delete from production?