function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Charlie Chaplin 2017Charlie Chaplin 2017 

Delete trigger in production via Eclipse

I am trying to delelte mulptiple triggers from Production environment but not able to delete it.
1. Created a force.com roject
2. Open Xml file and changes Status from inactive to "Deleted"
3. saved it to server
4. Slected theCredit package and XML file and deployed it to server

This is my log file but trigger is not deleted. Anyone know what i am doing wrong?

# Deployed From:
   Project name: Delete trigger from Prod 1
   Username: jamil.ahmed@everbank.com.devtrigger
   Endpoint: test.salesforce.com

# Deployed To:
   Username: jamil.ahmed@everbank.com.ci
   Endpoint: test.salesforce.com

# Deploy Results:
   File Name:    package.xml
   Full Name:  package.xml
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    triggers/AfterInsert.trigger
   Full Name:  Afterinsert
   Action:  NO ACTION
   Result:  SUCCESS
   Problem: n/a

# Test Results:
   n/a
Amit Chaudhary 8Amit Chaudhary 8
Please check below post "Steps to remove an apex trigger from production environment"

1) https://help.salesforce.com/articleView?id=000003942&type=1
2) https://developer.salesforce.com/forums/?id=906F0000000AuOLIA0

Remove or delete Apex Class or Trigger (https://help.salesforce.com/articleView?id=000006188&type=1)
1. Install Force.com IDE.
2. Connect to the Sandbox Instance using IDE and find the class or trigger that you want to delete.
3. Open the matching .xml file, and change the Status XML tag from Active to Deleted. 
4. Or to disable the trigger change it to Inactive.
NOTE: Apex class Status can only be changed to "Active" or "Deleted," not "Inactive".
5. Save the file.
6. Select the two files (Code and XML) using "Ctrl-click," and then right-click on one of them.
7. Select Force.com | Deploy to server.
8. Provide your credentials for the Production org and follow the steps.


Disable a Trigger in a production environment (https://help.salesforce.com/articleView?id=000005417&type=1)
  • Disable the trigger in sandbox environment [You should have a sandbox org which contains the same trigger]
  • Create a new project in Eclipse using the Sandbox and including the trigger (or refresh your existing Eclipse project)
  • 1. Alternative: edit the triggername.trigger-meta.xml in an existing project and change the status node to false: <status>Inactive</status>
  • 2. Save the change locally Deploy the trigger to production
  • Complete the data load
  • If the change is not permanent or you want to enable the trigger again then enable the trigger by making it active on the sandbox or project again and deploy it to production

Let us know if this will help you