Feature PR-6.1-dev Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
19 Nov 2025

The installer for components and plugins already automatically delete files, which are no longer present in the extension manifest. The module installer doesn't do that for some reason.
This PR proposes to add this functionality as I think it's a helpful feature for extension developers. Otherwise one has to manage a script file to delete no longer used files.

Summary of Changes

Added a property to track old installed files for updates.
This allows the parseFiles() method to automatically remove deleted files.
The Same code is already used in plugin and component adapter.

Testing Instructions

Install a module which used to have a file or folder that got deleted. Make sure it's an update (the module was already installed before).
You can fake such a module by taking any module and remove a file or folder line in the manifest and then install it.

Actual result BEFORE applying this Pull Request

The removed files or folder in the manifest are still present on the webserver after the update

Expected result AFTER applying this Pull Request

The removed files or folder in the manifest are deleted on the webserver after the update

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Bakual Bakual - open - 19 Nov 2025
avatar Bakual Bakual - change - 19 Nov 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Nov 2025
Category Libraries
avatar Bakual Bakual - change - 19 Nov 2025
Labels Added: PR-5.4-dev
avatar richard67
richard67 - comment - 19 Nov 2025

As it is a new feature, this PR has to be rebased to 6.1-dev.

avatar Bakual Bakual - change - 20 Nov 2025
Labels Added: Feature
avatar joomla-cms-bot joomla-cms-bot - change - 20 Nov 2025
Category Libraries Repository Administration com_admin SQL
avatar Bakual
Bakual - comment - 20 Nov 2025

As it is a new feature, this PR has to be rebased to 6.1-dev.

Done, but I think I broke the CI and you need to restart it :-)
Sorry for that.

avatar richard67 richard67 - change - 20 Nov 2025
Title
Allow the module updater to automatically delete obsolete files
[6.1] Allow the module updater to automatically delete obsolete files
avatar richard67 richard67 - edited - 20 Nov 2025
avatar joomla-cms-bot joomla-cms-bot - change - 20 Nov 2025
Category Repository Administration com_admin SQL Libraries
avatar richard67 richard67 - change - 20 Nov 2025
Labels Added: PR-6.1-dev
Removed: PR-5.4-dev
avatar richard67
richard67 - comment - 20 Nov 2025

As it is a new feature, this PR has to be rebased to 6.1-dev.

Done, but I think I broke the CI and you need to restart it :-) Sorry for that.

@Bakual The easiest way to fix that is to commit a change. I've allowed myself to apply a necessary change (use __DEPLOY_VERSION__) so we did not need a dummy change for that.

avatar Bakual
Bakual - comment - 20 Nov 2025

Perfect, thanks!

Add a Comment

Login with GitHub to post a comment