I have been cleaning up some DNN modules lately for clients. They contained JS and CSS files that are no longer in use, so I added a cleanup task to the module manifest and noticed something that's not in accordance with the documentation at https://www.dnnsoftware.c...ki/cleanup-component
But I could not get it to work for some reason although I had it workign before. Spending a while debugging this so sharing my findings in case it saves someone else the headache.
The manifest syntax is straightforward:
But that linked documenation states the file can have any name, which I found out is not correct. I tried naming it clean_04.09.00.txt but that did nothing. It seems like you must use [Module version].txt You should also note that the DNN installer will report success even when nothing is deleted The install log will say "Component installed successfully - Cleanup" regardless, so don't rely on that to confirm it worked.
HTH
Timo, I had similar experience, but in my case, I wanted to move the cleanup files to a separate (/cleanup/) folder. (see https://github.com/DNNCom...yForums/issues/1742) so they aren't crowding up the module's root folder. I was not successful in doing this either. I ended up giving up. Perhaps we should open some issues to see if this can be fixed/enhanced?
Yes, I tried putting it in a fodler too and as you said, that didn't work either. I spoke to @Peter Donker and he told me fixing this would not be an easy task..
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.