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
kcnmaheshkcnmahesh 

How to deactivate or delete an apex class from Production

Hi..,

 

 

 

I want to changeone  field type in production in an object.

But its referred in apex class , which is deployed into production.

And that field is a required field and also this field is referred in Other formula fields.

So How can i deactivate that apex class or delete that one to change field type.....?

Can anyone help me plz.....?

Navatar_DbSupNavatar_DbSup

Hi,

 

Use eclipse for this and inside the metadata of class make it inactive and then deploy in the production.

Another way is delete the code from the class and deploy the class in production org.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

 

AlgypugAlgypug

 

Thanks Navatar for your reply...

 

I deleted the code from apex class.

 

But while moving to production its showing error message regarding test class.

 

Then what i have to do for that test class....?