I am developing a template for a small group of sites. In the old J3 days, I had to make an override for some core templates to fix some minor things. With the update to J4 this was no longer necessary.
I created a new release for J4 only and dropped the overrides from that release. After updating the template, it did not work. Looking into the files showed that Joomla did update but refused to remove any preexisting files. So, the old overrides were still active. I deleted them manually in the files and it worked.
Now my question is: How can I tell the Joomla extension installer to remove a certain file during update?
I understand that it is not easy to understand for the installer which files are from the previous installed package and which ones are created by the user/admin in order to do whatever (think of a custom user.css
file).