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
gwpgwp 

How to delete a visualforce page and site?

Hi,

 

I created several sites and pages and now I no longer need them. How can I delete them? The page is dependant on the site, but when I open the sites to delete them I can only deactivate, and not remove them.

 

Thanks

 

Matt

Ispita_NavatarIspita_Navatar

In order to delete a page associated with a site, you need to remove it from any Site references:-

1. In the site detail page where Visual Force pages are enlisted edit and remove the page from the picklist

2. Also remove the page layout assignment given to any  other section like  Error pages.

the site and then delete it, in case you delete it as such it will give an error.