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
atlantisatlantis 

How to delete apex class on UE

Hi buddy,

 

Could anyone tell me how to delete apex code on production? we are using UE. and i am admin. thanks.

 

 

Cheers

Atlantis

tom_patrostom_patros

You can delete classes with Eclipse.

 

I'm not sure if a change set can make destructive changes, but that might be worth a try too from your sandbox...

atlantisatlantis

Thanks for that, i will try.

bob_buzzardbob_buzzard

 I don't think you can do this with change sets.  You can do it via Eclipse, but not directly.  You have to delete the class from a sandbox and then deploy the entire classes folder to production.  This will then compare the classes and figure out that you have deleted one.  Obviously you need to ensure that your sandbox and production are in step prior to the delete.

 

The other option is using the force.com migration tool and specifying a destructive changes XML file - there's a wiki entry on this at:

 

http://wiki.developerforce.com/index.php/Propagating_Destructive_Changes