In our SP2010 publishing site we have a lot of content (publishing pages) which are associated with custom page layouts. These page layouts have previously been edited on the server using SharePoint Designer, which we believe means they are now stored in the content database - which we understand is referred to as being "unghosted".
We are now trying to do a deployment of a package which includes new versions of these page layouts. The deployment appears to work; the new page layouts are stored on the filesystem, but do not actually get used because SharePoint prefers to use the ones already in the content database instead.
We have tried deleting the page layouts using SharePoint Designer (so the newly deployed ones on the filesystem get used), but we can't because there is lots of content using them.
We would like to be able to disassociate the existing content from these page layouts so we can delete the page layouts from the content database (using SPD) and deploy the new, packaged versions of the page layouts to the filesystem (and never edit the page layouts in SPD again!).
Is this approach possible? If not, any ideas on a different approach which doesn't require us to delete all our content first, as there is lots of it!