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
Somasundaram SubramanianSomasundaram Subramanian 

apex class deletion using xml

I tried using
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?
SwethaSwetha (Salesforce Developers) 
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%


If this information helps, please mark the answer as best. Thank you