How to delete apex trigger using SFDX CLI

Concrete Jungle
Reading Time: < 1 minutes

Deleting an Apex trigger using SFDX CLI can be easily carried out in a few simple steps. Follow these steps to delete an Apex trigger using SFDX CLI:

To check the list of triggers currently present in your project, run the command:

sfdx force:apex:trigger:list

If you have an Apex trigger in Salesforce that you want to delete, you can use the SFDX CLI to do so. Here are the steps to delete an Apex trigger in your Salesforce org using the SFDX CLI.

<code class="bash">sfdx force:source:delete -m "ApexTrigger:MyTrigger"

And that’s it! You can now easily delete any Apex trigger using SFDX CLI.

About the author

Andrés Canavesi
Andrés Canavesi

Software Engineer with 15+ experience in software development, specialized in Salesforce, Java and Node.js.

Related posts

Leave a Reply

%d bloggers like this: