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
kantravikantkantravikant 

Restore deleted class

How to restore deleted class?

Best Answer chosen by Admin (Salesforce Developers) 
kantravikantkantravikant

Also can achieve this as follow

I came across as I didn't know the exact name of class.

 

ApexClass []deltedClass = [Select id from ApexClass where Status='Deleted'];
system.debug('----'+deltedClass); //will give the list of  id of deleted classes

 

Thanks

Ravi

All Answers

kantravikantkantravikant

Also can achieve this as follow

I came across as I didn't know the exact name of class.

 

ApexClass []deltedClass = [Select id from ApexClass where Status='Deleted'];
system.debug('----'+deltedClass); //will give the list of  id of deleted classes

 

Thanks

Ravi

This was selected as the best answer