I am trying to delete some of my production code.

I am using VS Code and when I push the following to Prod:

<?xml version="1.0" encoding="UTF-8"?>
<ApexTrigger xmlns="http://soap.sforce.com/2006/04/metadata">

I receive the following error:

INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations

How do I delete Apex code from production? To my knowledge, you go into the metadata of your production code and change the status from "Active" to "Deleted".


Browse other questions tagged or ask your own question.