• Gabriel Kremer 35
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I am attempting to delete the following from a production environment using the CLI:
- An Apex class
- The test class for that Apex class
- 2 Apex triggers that I have successfully disabled in production using the Salesforce CLI in VS Code

I am running into an issue now where I am unable to delete these files from prod. I have tried creating a manifest file within my project and creating a new project with manifest.

For the sake4 of looking at something, I have tried deploying the manifest deleting the triggers using the following CLI command:
 
sfdx force:source:deploy -x manifest/deleteApex.xml --testlevel RunSpecifiedTests --runtests testMethod

Where TestMethod is a test method that I know passes. This worked before when I was simply changing the triggers' statuses to Inactive, but it is no longer working now that I am trying to change the statuses to Deleted.

More frustrating, I am not getting any sort of error information to debug with. This is what I get:
 
*** Deploying v54.0 metadata with SOAP API v53.0 connection ***
Deploy ID: [Deploy ID]

=== Component Failures [0]
Type  Name  Problem
────  ────  ───────


=== Test Results Summary
Passing: 0
Failing: 1
Total: 1
Time: 0
ERROR running force:source:deploy:  Deploy failed.