In general, triggers are not editable once deployed to a production org. However, in certain circumstances there might be a need to disable triggers in production.
Note: Consider the consequences of disabling a trigger in the production environment during work hours. It is highly recommended to perform this during off-hours. Also, disable access to the application to non-administrators during the maintenance period.
Via Salesforce CLI
Via Change Sets
To see this information in video format, watch How to Disable a Trigger in a Production Org via Change Set.
Via Workbench
Via Ant Migration Tool
Note: The Salesforce Ant Migration Tool is retired in the Spring of 2024. The tool continues to function for future API versions but is not updated with new functionality and is not supported. To manage metadata changes, switch to Salesforce CLI for a modern, supported developer experience. For more information, see Salesforce Ant Migration Tool End of Life.
Refer to the article Deploy Change Sets from Sandbox to Production for more details on deploying change sets.
000385540

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.