| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
|
| 4 |
BleachBit |
| 5 |
Copyright (C) 2008-2025 Andrew Ziem |
| 6 |
https://www.bleachbit.org |
| 7 |
|
| 8 |
This program is free software: you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation, either version 3 of the License, or |
| 11 |
(at your option) any later version. |
| 12 |
|
| 13 |
This program is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 |
|
| 21 |
--> |
| 22 |
<cleaner id="unique_id"> |
| 23 |
<!-- The label is the application name such as Bash or GIMP. |
| 24 |
Use the same capitialization as the application uses to |
| 25 |
refer to itself. By default, this is the only string |
| 26 |
that is not translated. To translate it, set |
| 27 |
the attribute translate="true". --> |
| 28 |
<label>Application name</label> |
| 29 |
<!-- Include a brief description of the application such as |
| 30 |
'web browser' or 'game.' Where possible, use the same |
| 31 |
description as another cleaner to avoid unnecessary |
| 32 |
translations. If the description is unavailable, omit |
| 33 |
the whole element. --> |
| 34 |
<description>Description of the application</description> |
| 35 |
<!-- A cleaner has one or more options. If the actions |
| 36 |
change significantly, you may change the option ID to |
| 37 |
avoid causing the user to deleting files unintentionally. --> |
| 38 |
<option id="unique_id"> |
| 39 |
<!-- The option label must be specific and should quickly give |
| 40 |
the user the jist of what the action does. Where possible, |
| 41 |
use the same description as another cleaner to avoid |
| 42 |
unnecessary translations. Good option labels include |
| 43 |
"logs," "cache," and "cookies." --> |
| 44 |
<label>Cleaning action</label> |
| 45 |
<!-- The description precises describes what will happen. It |
| 46 |
should begin with a verb such as "delete." --> |
| 47 |
<description>Delete the web cache, which reduces time to display revisited pages</description> |
| 48 |
<!-- Each option may have one warning shown to the user when |
| 49 |
selected interactively (in the GUI) to alert him of a |
| 50 |
special consideration or potential risk. --> |
| 51 |
<warning>Deleting the cache will slow down application usage</warning> |
| 52 |
<!-- An option has one or more actions. |
| 53 |
|
| 54 |
Actions generally have two parts: a search method (how to |
| 55 |
find a file) and a command (what to do with the file once |
| 56 |
it is found). You should make the pattern as specific as |
| 57 |
possible to avoid deleting files unintentionally. |
| 58 |
|
| 59 |
search="file" finds a single file. |
| 60 |
command="delete" deletes it. --> |
| 61 |
<action search="file" command="delete" path="/tmp/secret.log"/> |
| 62 |
<!-- On POSIX systems for system logs that may be in use, it's better |
| 63 |
to truncate than to delete. --> |
| 64 |
<action search="file" command="truncate" path="/var/log/messages"/> |
| 65 |
<!-- search="walk.all" deletes all files and directories under the directory (but |
| 66 |
not the parent). It walks each subdirectory too. --> |
| 67 |
<action search="walk.all" command="delete" path="/var/tmp/"/> |
| 68 |
<!-- search="walk.files" deletes all files (but not any directories), walking |
| 69 |
in to each subdirectory. --> |
| 70 |
<action search="walk.files" command="delete" path="/var/tmp/"/> |
| 71 |
<!-- search="glob" deletes all pathnames matching the shell glob |
| 72 |
pattern described in the Python documentation. |
| 73 |
http://www.python.org/doc/2.5.2/lib/module-glob.html --> |
| 74 |
<action search="glob" command="delete" path="/tmp/*.bak"/> |
| 75 |
<action search="glob" command="delete" path="/var/log/*.[0-9].gz"/> |
| 76 |
<action search="glob" command="delete" path="/tmp/?.bak"/> |
| 77 |
<!-- With search=file, glob, walk.all, and walk.files, BleachBit expands |
| 78 |
~ to the user's personal home directory and any existing environment |
| 79 |
variables such as $HOME and $USERPROFILE --> |
| 80 |
<action command="delete" search="file" path="~/.xsession-errors"/> |
| 81 |
<action command="delete" search="file" path="$USERPROFILE\_viminfo"/> |
| 82 |
<!-- While the search="..." generates a list of files, you can filter |
| 83 |
the list using any combination of: regex, nregex, and type. |
| 84 |
|
| 85 |
regex and nregex are both case sensitive and both match just the |
| 86 |
filename (i.e., not the whole path). |
| 87 |
|
| 88 |
The following action truncates any file that ends with log. |
| 89 |
--> |
| 90 |
<action command="truncate" search="walk.files" path="/var/log" regex="log$" type="f"/> |
| 91 |
<!-- command=sqlite.vacuum defragments an SQLite 3 database --> |
| 92 |
<action command="sqlite.vacuum" search="glob" path="/var/cache/yum/*/*.sqlite"/> |
| 93 |
<!-- command="winreg" without the attribute 'name' deletes |
| 94 |
Windows registry keys --> |
| 95 |
<action command="winreg" path="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU"/> |
| 96 |
<!-- command="winreg" with the attribute 'name' deletes a |
| 97 |
named value under a Windows registry key --> |
| 98 |
<action command="winreg" name="CurrentVersion" path="HKCU\Software\BleachBit"/> |
| 99 |
</option> |
| 100 |
</cleaner> |