You need to sign in to do that
Don't have an account?
Somasundaram Subramanian
apex class deletion using xml
I tried using https://www.salesforceben.com/way-to-delete-apex-classes-from-production/
do i need to run the test classes for deletion of apex classes
my list has classes and test classes
if i select no test class run will this delete the apex class in production?
thanks
do i need to run the test classes for deletion of apex classes
my list has classes and test classes
if i select no test class run will this delete the apex class in production?
thanks
A "destructive deployment" is still a deployment and thus has to comply with the same rules. You need to push destructive changes + run specific test class/RunAllTests
It is generally recommended to run test classes before deleting Apex classes in Salesforce. There is minimum code coverage needed in Salesforce. If you delete Apex classes without adjusting your test classes accordingly, it might lead to a decrease in code coverage, and your deployment or release process could fail.
You can run specified test classes to meet the threshold of 75%
Related: https://salesforce.stackexchange.com/questions/236700/deploying-destructive-changes
If this information helps, please mark the answer as best. Thank you