Skip to content

How do I delete a class from production in Salesforce?

You cannot delete a class in production directly. You will need delete the class from your sandbox and then deploy the deletions to your production org. When you deploy from sandbox to production, the missing classes will come up in red and you can choose to deploy these deletions to Production.Click to see full answer. Similarly, you may ask, how do I delete a trigger from production in Salesforce? Delete apex class or trigger in Salesforce Production Org Download Force.com IDE. Connect to the salesforce production org. Download the apex class/trigger. Open the XML file of the Apex class/trigger. Change the status of the Apex class/trigger to Deleted. Save and deploy to server. Subsequently, question is, can we edit Apex class in production? You can edit it directly in the org (Setup->Develop->Apex classes or equivalent) or in the Development Console (Setup->Development Console, then File->Open) or in Eclipse Force.com IDE and simply deploy it again. The original post didn’t specify deployment to production. Consequently, what can be used to delete components from production salesforce? To delete components, perform a deployment with the deploy() call by using a destructive changes manifest file that lists the components to remove from your organization. You can perform a deployment that only deletes components, or a deployment that deletes and adds components.How do you remove apex from developer console? Follow the below steps to do that in production instances, Create new project in eclipse and download all the source code from production. Open the meta-data of the file you want to delete in production and change the status to Delete. Click save to server to delete the class in the production.

Leave a Reply

Your email address will not be published. Required fields are marked *