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
chercher 

Unable to deactivate the apex class

Hi 

 

 In sandbox i am want to deactivate an apex class, i am not seeing the status checkbox when i click edit link of the class. Is this normal? Is there any other way in which in can deactivate the classes?

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
SidharthSidharth

I think you can deactivate triggers only.

For classes, you  can comment out the code.

 

ex:

 

public with sharing class className{
 
/*
  	--- class body ----
 
*/  
 
}

 

All Answers

SidharthSidharth

I think you can deactivate triggers only.

For classes, you  can comment out the code.

 

ex:

 

public with sharing class className{
 
/*
  	--- class body ----
 
*/  
 
}

 

This was selected as the best answer
craigmhcraigmh

Yeah, you just have to comment out/remove the code in your sandbox, then push that to production.