3

Can we able to remove visual force tab? My requirement is i want to delete one visualforce page completly.when i am deleting it it is referencing to visualforce tab. Then i tried to remove that tab it is showing vice versa. Not letting me to delete vf page.

Any suggestions?

  • If the question has been answered, please mark one of the responses as the answer. – DavidSchach Jul 11 '14 at 2:12
3

If the Visualforce page says in the apex:page tag: tabstyle="CustomTab__Tab" or similar, then it will give an error.

Remove the tabstyle part of the page tag in the page, and then delete the tab.

| improve this answer | |
  • Nothing like good old circular references ... – Ralph Callaway Jun 30 '14 at 22:35
1

That sounds unusual that the visualforce page is referencing the tab when you try to delete the tab. Could you post up the exact error?

If the page is somehow referencing the tab then you could just delete the content of the page so it saves as just an empty visualforce page. Then you should be able to delete the tab followed by the visualforce page.

The other option would be to use the migration tools and create a destructiveChanges.xml file that contains both the tab and the page. More details on this here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.