Uninstalling a package from a Salesforce org failed recently due to references from profiles to page layouts.
This installed component is referenced by a locally created component. System Administrator
![Unable to uninstall package](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHXDyWFm3L1W90SKieTiEWgkgbmPOcjN02XkRjM3g8N2uPdkUiNYME7scf_ny_TPLA-cBASjtqEONKvrQ1dCNY3UZSvEaUqu_e2NLzzFZmUM-6ieh95LEeC0Mq7BF6QO650lwK4OuePJ1Q/s400/SalesforceUninstallingAPackageFailure.png)
It is possible to remove this mapping by following the link to the profile and changing the page layout assignments for the affected objects.
Alternatively, I found it quicker to manually remove the page layout and use the replacement screen provided by Salesforce.
App Setup > Customize > Accounts > Page Layouts > Page Layout Name : Del
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhssd5DqDugNIhJUPZzWNmx4jVmhYClAo-jvflwJtyJZORE_E3pUUsug9LabLY6Z2azmpO4f0Hpz9LiazE-Ox-_1bpFpLcCEH_ZUFL9SvonW9Ox5FBM3rJlqL8llvVPwDO3YRmCLndww2mW/s400/SalesforceDeletePageLayout.png)
Then use the page layout replacement screen to reassign any references to a remaining page layout.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDrsa1cTM69UawlGPfDxTBzfVat23PuI8cGtetnVzd8YXtRgCqFgbRPffBVsYYNFk0sicH89MKNmrlutzAeOmvWDBYGWD8oDMaYq_Xa1JQoG6fqSKidA3gY614MF66ns7YTeNa7eDb2xTj/s400/SalesforceReplacePageLayout.png)