How do I delete an Apex class in Salesforce Enterprise Edition using Eclipse?

In order to delete a trigger from a production org using eclipse you will need to use the following steps(assuming you have a sandbox org): Through the web interface in your sandbox org, inactivate the trigger Refresh your sandbox project in eclipse and deploy the inactive trigger to production Refresh your production project in eclipse, right click on the trigger and select delete Accept the option to delete from server I believe the above steps will work, however I have only ever removed components from a production org using destructive changes & the Ant Migration Toolkit To use the Ant Migration Toolkit for a destructive change you would need to setup the destructivechange. Xml file to look similar to this:? Xml version="1.0" encoding="UTF-8"?

> MyTrigger ApexTrigger 21.0.

In order to delete a trigger from a production org using eclipse you will need to use the following steps(assuming you have a sandbox org): Through the web interface in your sandbox org, inactivate the trigger Refresh your sandbox project in eclipse and deploy the inactive trigger to production Refresh your production project in eclipse, right click on the trigger and select delete Accept the option to delete from server I believe the above steps will work, however I have only ever removed components from a production org using destructive changes & the Ant Migration Toolkit. To use the Ant Migration Toolkit for a destructive change you would need to setup the destructivechange. Xml file to look similar to this: MyTrigger ApexTrigger 21.0 There are full instructions on how to propogate destructive changes on developerforce.

The easiest way to do this is to delete the file from your project in Eclipse (not removing from the server because that doesn't work) and then you right click on the FOLDER (i.e. Triggers / Classes) and choose Deploy To Server. When the dialog which shows want you want to deploy appears, the class/trigger in question will be highlighted as a red row, meaning you can check it for deletion from the production org.

I had a near-duplicate question and landed here. I want to delete a class with just the Force. Com IDE (Eclipse) from my production org.

Inediger described how to deploy the destructive change set using the Ant Migration Toolkit and guessed at how to do it in the Force. Com IDE. In my attempts with Force.Com IDE version 20.0, Inediger's steps 3 and 4 will prevent you from deleting the class/trigger in your production org.

Here's the natural attempt to delete a class in the Force. Com IDE: Click the class. Press delete.

"Are you sure you want to delete file 'myClass. Cls'?" ... OK "The requested operation will only delete the resource locally. Would you also like the resource to be deleted from the server?

" ... Yes At this point the file is deleted from your project and your dev org, but it remains in your production org (and the admin web interface won't let you delete it there) so you continue with: Deploy to Server. Enter production org credentials. Next.

Next. Look for your class in the Deployment Candidates list--but it's not there! Unfortunately, your class won't be listed with the Deployment Candidates because the Force.

Com IDE has already lost track of that file (because you deleted it--if you're in this boat recreate the class in your dev org and follow my instructions below). We need to delete in production before we delete the file locally (I think we're walking the Force. Com IDE through constructing one of those destructive change sets and deploying it for us): Edit the class's matching *-meta.

Xml file (from the Force.Com IDE). Set the status to Deleted: Deleted. Save.

Right click your class, Force. Com | Deploy to Server. Enter your production org's credentials.

You should see your class as the only deployment candidate! Check the box for "Apply Action? " to Overwrite your class.

Next your way through the rest of the wizard. If you're following along in the Salesforce admin web pages you'll notice that the class disappears from your dev org after saving in step 2. It disappears from your production org when you get the green check mark after step 7.

Finally, I delete the class from the Force. Com IDE as I normally would. When it asks me if I want to delete the file from the server I say no because we've already taken care of it.

I also Add/Remove metadata components and uncheck the class name to get rid of the warning message.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions