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
EMHDevEMHDev 

How to delete from production without deleting from Sandbox?

I'm getting an obscure error in production that doesn't occur in the test methods and doesn't occur in the sandbox.  I want to delete my set of triggers, class  and then the custom object from production and deploy again from the sandbox.  Is there a way to do this without having to archive the code, delete it from the sandbox, deploy the deletions and put it back into the sandbox again?  I would prefer to spare myself the pain and time involved in that!

Best Answer chosen by Admin (Salesforce Developers) 
Imran MohammedImran Mohammed

You can find some useful information on deleting in Production in the following links.

Link 1

Link 2

Link 3

All Answers

Imran MohammedImran Mohammed

You can find some useful information on deleting in Production in the following links.

Link 1

Link 2

Link 3

This was selected as the best answer
EMHDevEMHDev

Thanks.  I'd already found these, I'm leery of using ant and otherwise, as I said, I need to delete it from the sandbox first.  I guess there is no way around it.