+ Start a Discussion
Saptarshi AcharyaSaptarshi Acharya 

How can I delete an Apex Class from a Dev org, that I added as part of a trailhead?

Om PrakashOm Prakash
In your developer org, got to Setup> Apex Classes > 
From list view of classes you can delete the class.
Before deleting it you need to remove it's reference from components, for example if visualforce page used that class then remove reference from vf page first.
User-added image
Raj VakatiRaj Vakati
Option1: Using Developer console 

OPen Apex Class in developer console 
and you go to file --> delete option which delete the apex class 

Option 2 : Using Setup menu 

In your developer org, got to Setup> Apex Classes >  From list view of classes you can delete the class whihc you want 
 
Deepali KulshresthaDeepali Kulshrestha
Hi Saptarshi,
It is not possible to directly delete an Apex class after it has been deployed to production. A quick workaround to delete or disable Apex Class is by using eclipse and Force.com IDE.
Please go through the link given below in which you can resolve this problem step by step:
https://www.greytrix.com/blogs/salesforce/2014/11/29/delete-apex-class-or-trigger-in-salesforce-production-org/

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
Ajay K DubediAjay K Dubedi
Hi Saptarshi,

You can do follow the Set-up menu to delete the class in developer Org:
1. Type Classes on the quick find box in the set up menu.
2. Choose the class that you want to delete.
3. Click on the class name.
4. You click a delete button there on the page.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi