3.3. Deleting a webpage from an existing site

The easy part of Website maintenance is deleting a file. Just remember to delete it from :

If you delete it from each of these in turn, rebuild the site and upload the modified site to the server, the removal will be complete

It is necessary to rebuild the site since the links to and from the page will still be there until the rebuild is done.

If you have links to a particular page from another xml file, you will need to remove the link from the source file to enable a clean build! Always watch the build process for errors of this type.

The other problem that occurs is when you want to remove a complete section, such as the one added in Section 3.2.1 above, then it is necessary to remove not only the containing element (tocentry) but also the contained files.

<tocentry dir="brew" page="brew.xml" filename="index.html">  
        <tocentry page="brew.india.xml" filename="india.html"/>
	<tocentry page="brew.china.xml" filename="china.html"/>
      </tocentry>

In this case, remove the above lines from layout.xml, the three xml files and the corresponding html files (on both the local copy and on the server) will need to be removed before the whole section is removed from the site.

Again, rebuild and upload the site to the server to complete the process.