Skip to main content

Posts

Showing posts from November, 2015

How to Delete Triggers from Production Org

We can delete unnecessary triggers in Production by using the eclipse IDE: Step 1:  Assuming you have a sandbox environment synchronized with your Prod org, you will first want to inactivate the trigger in sandbox. You can refresh your IDE project to consume these changes Step 2:   In the Sandbox org, you will then want to run all tests: Navigate to Setup-->Develop-->Apex Classes and click "Run All Tests". This will run all of the tests in the sandbox org. This is an important step to validate whether or not the inactive trigger has impacted any asserts within your test methods. Assuming this behavioral change has impacted your tests, you will need to update your asserts to reflect this. Step 3:  Once all tests are passing, you can now deploy these changes to your production environment. You can use the Deploy to Server wizard in the IDE. Simply select the tests that you have modified, as well as the inactive trigger, and deploy these chan...