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
Manish Kumar 23Manish Kumar 23 

Deleting Class from Production instance

I have arround 5 to 6 class that is requited to be deleted in Production instance. for deleting a class I have installed IDE Ecllips and updated xml file with "Deleted" ansd then save to server. 
But unfortunalty I am geeting that code is save locally. and the changes are not refelecting in production instance
v varaprasadv varaprasad
HI Manish,

Remove or delete Apex Class or Trigger
1. Install Force.com IDE.
2. Connect to the Sandbox Instance using IDE and find the class or trigger that you want to delete.
3. Open the matching .xml file, and change the Status XML tag from Active to Deleted. 
4. Or to disable the trigger change it to Inactive.
NOTE: Apex class Status can only be changed to "Active" or "Deleted," not "Inactive".
5. Save the file.
6. Select the two files (Code and XML) using "Ctrl-click," and then right-click on one of them.
7. Select Force.com | Deploy to server.
8. Provide your credentials for the Production org and follow the steps.

More Info : https://help.salesforce.com/articleView?id=000006188&type=1
                 http://www.salesforceben.com/way-to-delete-apex-classes-from-production/

please check once above links..

Thanks&Regards
Varaprasad
v varaprasadv varaprasad
https://developer.salesforce.com/forums/?id=906F00000008yIyIAI
Manish Kumar 23Manish Kumar 23
Thanks Varaprasad, Can we do the same step directly in the production instance, insted of sandbox. 
v varaprasadv varaprasad
No we cant do in production directly.
Manish Kumar 23Manish Kumar 23
Hi Varaprasad, When I am tryinh to do it via sandbox I am getting multiple error " please see below snapshotUser-added image