• Jeremy Story
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I have tried and tried to delete an Apex class created when I tested out the 'sites' functionality.  It is blocking the install of NPSP 3.0 because the class assumes we are using portals.  

How can you delete an Apex class?

I have tried the following:
1.  Using Eclipse with Force.com IDE - marking the xml file from 'Active' to 'Delete'  = result is file says it deployed successfully - it shows in Eclipse in the XML as still status Deleted---but in SF the file is still active.  It only lets me delete Apex tests this way...not the actual Apex file being tested.
2.  Deleting in a sandbox - then there is nothing to put into an oubound deployment to production server
3.  Marking as deleted as in #1 but in the Sandbox and then deploying to production server from the Sandbox...it still doesn't work

What else keeps an Apex file from deleting or even being able to update its code?  If it is dependencies and I cant remove the dependent references from the code how do I remove the dependencies.

I tried also deleting the Visual Force Pages that are related to the Apex class.  It won't let me delete them either.  Activating 'sites' really has messed up my ability to deploy/install NPSP 3.0 to my SF instance.  It sets up bunches of Visual Force Pages and Apex code files in the system.  It also lowers the amount of tested code for deployment.  I can't figure out how to get rid of all these Apex Code files and Visual Force pages because the system won't let me delete it no matter what I try.
I have tried and tried to delete an Apex class created when I tested out the 'sites' functionality.  It is blocking the install of NPSP 3.0 because the class assumes we are using portals.  

How can you delete an Apex class?

I have tried the following:
1.  Using Eclipse with Force.com IDE - marking the xml file from 'Active' to 'Delete'  = result is file says it deployed successfully - it shows in Eclipse in the XML as still status Deleted---but in SF the file is still active.  It only lets me delete Apex tests this way...not the actual Apex file being tested.
2.  Deleting in a sandbox - then there is nothing to put into an oubound deployment to production server
3.  Marking as deleted as in #1 but in the Sandbox and then deploying to production server from the Sandbox...it still doesn't work

What else keeps an Apex file from deleting or even being able to update its code?  If it is dependencies and I cant remove the dependent references from the code how do I remove the dependencies.

I tried also deleting the Visual Force Pages that are related to the Apex class.  It won't let me delete them either.  Activating 'sites' really has messed up my ability to deploy/install NPSP 3.0 to my SF instance.  It sets up bunches of Visual Force Pages and Apex code files in the system.  It also lowers the amount of tested code for deployment.  I can't figure out how to get rid of all these Apex Code files and Visual Force pages because the system won't let me delete it no matter what I try.