I'm working on a project for which we have enabled a community on a sandbox. We have removed most of the pages and classes that were automatically generated when a community or site is created (for instance MyProfile.page, ChangePassword.page, etc) and created some custom pages for those functions.
We have put all our metadata in a repository and are able to deploy the changes to a different sandbox. When we deploy the revision with all the community-stuff in it to a different sandbox, it all works as expected and the community/site is enabled on the sandbox. However, all of the default pages and classes are also generated. Is there a way to prevent Salesforce from creating all those classes and pages when a site is created?