Remove outdated files

PluginRemoveOld
Description To remove outdated files (DW - Upgrade - Files to remove).
Type admin
Author Taggic
Last update 2014-10-14
DW compatible Hrun, Ponder Stibbons, Binky, Weatherwax, Angua, Rincewind
Depends none
Conflicts none
Similar Scripts & Tips
Download https://github.com/Taggic/removeold/archives/master
Issues fcon - RemoveOld issues

Vote for this plugin

RemoveOld
(88) (91)


Intro

An up to date DokuWiki should not have any of unused and outdated files installed. This admin-plugin will support you on deleting of such outdated files. Login with your admin credentials and open the admin panel. There you will find within the section Additional Plugins a link to open the UI of this plugin (Remove outdated files). Beside a small description a set of controls is provided.

The textarea control is pre-filled due to the valid file for your DokuWiki version is provided within the data folder (deleted.files). The same list for lates DokuWiki release is provided by the core developers at Upgrade - Files to remove. You may simply copy this list and paste it into the plugin textarea to overwrite the given values.

Simulate only (dry run)
This switch is turned on by default. It is to be used to check your system against the files provided within the textarea. The plugin does not take over any guarantee if the listed files are really obsolete. With option dry run it will check which of them are existent and accessible. The result will be displayed as a list of the files and a short text below the textarea input control (except the Show summary only ! option is turned on). It is recommended to run a simulation first.

Execution
To really delete the files just switch off the stimulation option and press start. But first Make a full backup of your wiki (better safe than sorry).

Summary only
For quick checks especially on simulation it may be of interest to get just a brief overview about the result to be expected. To do so switch on the Summary only ! option. It can be used on execution also as on simulation and will suppress the detailed list of files and results. The output will be reduced to something similar as follows:


Following values may be given as result:

Text meaning
File not found The file does not exist on your system at the given path
Files deleted Simulation: You have proper rights to delete this file
Execution: You switched off the simulation option. That means your files are really deleted now.
! ERROR ! Simulation: You have no proper rights to delete this file or the file is inaccessible for another reason.
Execution: A php-warning will be displayed and provides more information about the failure root cause (e.g. Permission denied). The files will still be existent.


Example for a Warning on Simulation (Summary switched off !):


Example for a Warning on Execution (Summary switched off !):


Logging
The plugin does provide also a logging of information about deleted files and files, which were not deleted due to an error (most probably due to file permission problem). The logfile is stored to data/tmp/removeold.log. Each execution will add the results to the file. Usually the feature is used once per DokuWiki release and will not lead into significant space consumption on your server.

The following example illustrates the content.

removeold.log
[25/Apr/2012 17:21:22] Files deleted lib/_fla/.htaccess [25/Apr/2012 17:21:23] Files deleted lib/_fla/MultipleUpload.as [25/Apr/2012 17:21:23] Files deleted lib/_fla/README [25/Apr/2012 17:21:23] Files deleted lib/_fla/index.html [25/Apr/2012 17:21:23] Files deleted lib/_fla/multipleUpload.fla [25/Apr/2012 17:21:23] Files deleted lib/exe/multipleUpload.swf
  1.  
  2. [25/Apr/2012 17:21:22]  Files deleted           lib/_fla/.htaccess
  3. [25/Apr/2012 17:21:23]  Files deleted           lib/_fla/MultipleUpload.as
  4. [25/Apr/2012 17:21:23]  Files deleted           lib/_fla/README
  5. [25/Apr/2012 17:21:23]  Files deleted           lib/_fla/index.html
  6. [25/Apr/2012 17:21:23]  Files deleted           lib/_fla/multipleUpload.fla
  7. [25/Apr/2012 17:21:23]  Files deleted           lib/exe/multipleUpload.swf
  8.  

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin.
Refer to Plugins on how to install plugins manually.

Version/Requirements

There should be no dependencies to the DokuWiki release.

Development History

Please visit → Development History where you will find a chronological list of changes.

Recent Changes

Discussion

Please use only the DokuWiki Forum for discussion and git to raise issues.
The plugin development is still ongoing. There might be something be corrected, to implement and to improve.

FAQ

removeold/start.txt · Last modified: 2014/10/14 15:33 by taggic

This Wiki is hosted and ruled by Policies of Frister Consultancy Services.
By using this wiki you accept these rules. -> Impressum