You need to sign in to do that
Don't have an account?
Gambit
Undeploy
Hi, I have deployed some code into my production using eclipse .
Now, for some reason i want to get the code and trigger out of production. Is there a way to undeploy the class and the trigger from production and if so how do i go forward doing that.
I´m not sure if this could be the best way but for sure it works.
1. Make a backup copy of the trigger and class you want to delete from server.
2. Delete the corresponding files from your Sandbox/Developer Eclipse project.
3. Run the deploy to server option, so this time Eclipse will mark your trigger and class in red saying those programs could be deleted.
I hope this helps.
Hey thanks a lot for your input.
I have one more question. Is there a way where you could simply deactivate the trigger rather than just deleting it.
All i am doing is overriding a couple of fields through the trigger. If the trigger is deleted, i dont want it to mess my production
THanks
FIRST OF ALL: I suggest to make a backup of your data , do every required change in a Sandbox or Developer org before, test it and later update it in production.
What you need to do is to deactivate your trigger first, then update the field type (if that's what you need to do) and finally, update your trigger code if probably you could be using some special Apex Functions that depends on the former field type (like toUpperCase, Round, etc), then reactivate your trigger again.
Warning: If you want to change a Number field type to String, be sure you have a backup, because sometimes when you do the type change numeric some records could have added a '.0' at the end of the number or get scientific notation.
Thank you Wilmer, I appreciate your time and contribution here. Also, if you ever learn of any other way to 'undeploy' do let me know. I will do the same if i do.
Thanks again
With a single a "undeploy" command you can do it too and as I told you, faster. Try it if you want to.