Skip to main content
Like many organizations, sometimes the things our department pours hours and hours of build time into is discarded by the end user after a year or two.  :-)  My question is - what are the best practices around unused Visualforce pages and Apex code? I know HOW to delete both of these things if they're not being used. I'm just wondering if they SHOULD be deleted, or if they should be stored somewhere (either inside or outside of Salesforce).
1 answer
  1. Nov 13, 2015, 3:41 AM
    In a perfect world, I would delete anything you don't need.  In a realistic world, however, you'll start noticing lots of inter dependencies between everything, and it may be worth less than the effort it takes to delete any unused items.

    If you decide to go through with it though, I would export all the code and vf to source control first (bitbucket.org has free repositories for up to 5 users until it becomes a paid solution).  This way, you have a backup of your code and visualforce at bare minimum.
0/9000