You need to sign in to do that
Don't have an account?
Rakshith Ramachandra
Deleting classes/triggers from Production
I'm trying to delete few classes from Production environment.
At first I tried to delete these without the help of Eclipse Force.com IDE and deleted those classes directly from sandbox env.
However, I still see those classes in Production. So I installed Eclipse and Force.com IDE and trying to mark the class "Deleted" in xml and deploy them. The problem is I can't find these classes in Sandbox at all as I deleted from website directly.
Any idea how to deal with this situation?
At first I tried to delete these without the help of Eclipse Force.com IDE and deleted those classes directly from sandbox env.
However, I still see those classes in Production. So I installed Eclipse and Force.com IDE and trying to mark the class "Deleted" in xml and deploy them. The problem is I can't find these classes in Sandbox at all as I deleted from website directly.
Any idea how to deal with this situation?
I'm not working with Force.com IDE myself and don't know how to tackle it this way, but....
You could always use Migration Tool and destructive change provided to remove those class/trigger quite easly.
https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool.htm
I personally think it is very easy to config and use and could sort out your problem.
All Answers
The above SS is the production env.
The above SS is the sandbox env.
You can see the class "ChatterAnswersEscalationTriggerTest" is not present in Sandbox. How do I delete that class from Prod?
Thanks,
Rakshith
I'm not working with Force.com IDE myself and don't know how to tackle it this way, but....
You could always use Migration Tool and destructive change provided to remove those class/trigger quite easly.
https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool.htm
I personally think it is very easy to config and use and could sort out your problem.
URL: https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/meta_development.htm
Thanks in advance
{main_folder}/sample/codepkg
{main_folder}/sample/mypkg -
{main_folder}/sample/removecodepkg
{main_folder}/sample/unpackaged
First two by default are used to upload code/object/other meta. So f.e. if you want to upload sampleClass and sampleClassTest you put files in one of them together with correct package.xml (it's just FYI).
A folder that you should pay more attention to is the removecodepkg. Inside you have a xml file called destructiveChanges.xml. It looks the same as a regular package.xml except it contains metadata of stuff you want to get rid of.
For your own safety test it on the sandbox first so you get a feel for it.
Cheers
Rakshith