For it to be displayed, the server must be able to write to the src/addons/
directory, and the given add-on must have hashes available and must not have any development files (ie. a non-empty _output/
directory).
I'm planning to remove some of this cruft from our server "soon".
However, the whole process looks a wee bit ambiguous/dangerous.
In a test clone, I tweaked the file ownership of the
src/addons
tree so that the server could write. This instantly made the "Delete files" button appear for our uninstalled addons.
However...
The
hashes.json
lists
all files that belong to the addon - including the ones that are in other trees like
js
. The reply above makes me suspect that the removal is based on the hashes (as a manifest, essentially).
This raises two questions/concerns:
Firstly, my server won't at present be able to remove the files in the other trees (I didn't yet change those permissions/ownership). Will XF refuse to remove anything when I hit "Delete files", or will it just delete what it can from the addons tree and leave other stuff behind?
Secondly, I realise that the files in the other trees may not be the only ones which are potentially needed by other addons - the ones in the main addons tree could also be required. This line of thinking makes me wonder: can you successfully hit the uninstall button at all, if an addon is listed as a prerequisite for other installed addons?