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
md inayatmd inayat 

On Sandbox

1.can we delete apex class from production?
Hemant_SoniHemant_Soni
Hi md inayat,
You can  not delete apex class from production.
Thanks
Hemant
 
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Md Inayat,

Apex code can't be modified directly within a Production organization, it requires steps using Developer tools, like the Force.com IDE.

NOTE: This is the only way an Administrator or Developer can disable or remove Apex in Production.

Please refer the Salesforce help document on disabling Apex Class in production. Hope it will be helpful.

Please mark it as best answer if the information is informative.

Best Regards
Rahul Kumar