+ Start a Discussion
Andrew Hoban 6Andrew Hoban 6 

How to delete classes in Force.com Eclipse (Chatter Answers)

Hi all,

I am trying to siiable chatter answers from my production org. I have never used the eclipse force.com plug in but i know this is how i have to delete them.

Would anyone be able to provide a step by step process to deleting a class on this?

I am not sure if i need to log into the sandbox or production

Thanks
Best Answer chosen by Andrew Hoban 6
Bhawani SharmaBhawani Sharma
What all you need to do is:
1. Install Force.com IDE on your local machine.
https://developer.salesforce.com/page/Force.com_IDE_Installation

2. Once installation is completed, you need to create a new project using File -> New -> Force.com project.
3. You need to provide your production username, password and security token.
4. Click on finish.
5. Now in the eclipse sidebar, you can see all teh production classes, pages, triggers, components and static resources.
6. Select desired class to be deleted and hit the delete button.

All Answers

Bhawani SharmaBhawani Sharma
Create your project in eclipse. Select teh class from left navigation bar and right click, and then delete.
Andrew Hoban 6Andrew Hoban 6
What is the project exactly? How do i save to the server? Do i need to log into the sandbox or into the production.

Thanks for your help
Bhawani SharmaBhawani Sharma
What all you need to do is:
1. Install Force.com IDE on your local machine.
https://developer.salesforce.com/page/Force.com_IDE_Installation

2. Once installation is completed, you need to create a new project using File -> New -> Force.com project.
3. You need to provide your production username, password and security token.
4. Click on finish.
5. Now in the eclipse sidebar, you can see all teh production classes, pages, triggers, components and static resources.
6. Select desired class to be deleted and hit the delete button.
This was selected as the best answer
Andrew Hoban 6Andrew Hoban 6
Thank you, i am now deleting the classes. I have created the project by logging into my production org, not the sandbox. Is this correct?

Thanks
Bhawani SharmaBhawani Sharma
Correct.