Debian Codegraph @

cleaners/google_chrome.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 SPDX-License-Identifier: GPL-3.0-or-later
5 Copyright (c) 2008-2026 Andrew Ziem.
6
7 This work is licensed under the terms of the GNU GPL, version 3 or
8 later. See the COPYING file in the top-level directory.
9
10 -->
11 <cleaner id="google_chrome">
12 <label>Google Chrome</label>
13 <description>Web browser</description>
14 <running type="exe" os="windows" same_user="true">chrome.exe</running>
15 <running type="exe" os="linux" same_user="true">chrome</running>
16 <running type="exe" os="macos" same_user="true">Google Chrome</running>
17 <running type="pathname" os="macos">~/Library/Application Support/Google/Chrome/SingletonLock</running>
18 <var name="base">
19 <value os="windows">%LocalAppData%\Google\Chrome\User Data</value>
20 <value os="macos">~/Library/Application Support/Google/Chrome</value>
21 <value os="linux">$XDG_CONFIG_HOME/google-chrome</value>
22 <value os="linux">~/.var/app/com.google.Chrome/config/google-chrome/</value>
23 <value os="linux">~/.var/app/com.google.ChromeDev/config/google-chrome/</value>
24 </var>
25 <var name="profile">
26 <value os="windows">%LocalAppData%\Google\Chrome\User Data\Default</value>
27 <value search="glob" os="windows">%LocalAppData%\Google\Chrome\User Data\Profile *</value>
28 <value os="macos">~/Library/Application Support/Google/Chrome/Default</value>
29 <value search="glob" os="macos">~/Library/Application Support/Google/Chrome/Profile *</value>
30 <value os="linux">$XDG_CONFIG_HOME/google-chrome/Default</value>
31 <value search="glob" os="linux">$XDG_CONFIG_HOME/google-chrome/Profile *</value>
32 <value os="linux">$XDG_CONFIG_HOME/google-chrome-beta/Default</value>
33 <value search="glob" os="linux">$XDG_CONFIG_HOME/google-chrome-beta/Profile *</value>
34 <value os="linux">$XDG_CONFIG_HOME/google-chrome-unstable/Default</value>
35 <value search="glob" os="linux">$XDG_CONFIG_HOME/google-chrome-unstable/Profile *</value>
36 <value os="linux">~/.var/app/com.google.Chrome/config/google-chrome/Default</value>
37 <value search="glob" os="linux">~/.var/app/com.google.Chrome/config/google-chrome/Profile *</value>
38 <value os="linux">~/.var/app/com.google.ChromeDev/config/google-chrome/Default</value>
39 <value search="glob" os="linux">~/.var/app/com.google.ChromeDev/config/google-chrome/Profile *</value>
40 </var>
41 <option id="ai">
42 <label translators="Cleaning option that deletes AI models in a web browser">AI</label>
43 <description>Delete the AI models</description>
44 <action command="delete" search="walk.all" path="$$base$$/OnDeviceHeadSuggestModel"/>
45 <action command="delete" search="walk.all" path="$$base$$/OptGuideOnDeviceModel"/>
46 <action command="delete" search="walk.all" path="$$profile$$/OptGuideOnDeviceModel"/>
47 <action command="delete" search="walk.all" path="$$base$$/OptGuideOnDeviceClassifierModel"/>
48 <action command="delete" search="walk.all" path="$$profile$$/OptGuideOnDeviceClassifierModel"/>
49 </option>
50 <option id="cache">
51 <label>Cache</label>
52 <description>Delete the web cache, which reduces time to display revisited pages</description>
53 <action command="delete" search="file" path="$$base$$/Safe Browsing Channel IDs-journal"/>
54 <action command="delete" search="walk.all" path="$$base$$/component_crx_cache"/>
55 <action command="delete" search="walk.all" path="$$base$$/extensions_crx_cache"/>
56 <action command="delete" search="walk.all" path="$$base$$/GraphiteDawnCache"/>
57 <action command="delete" search="walk.all" path="$$base$$/GrShaderCache"/>
58 <action command="delete" search="walk.all" path="$$base$$/ShaderCache"/>
59 <!-- Google Chrome 126 on Linux stores Network Persistent State directly under $$profile$$ while Chrome 126 on Windows stores it under $$profile$$/Network -->
60 <action command="delete" search="file" path="$$profile$$/Network Persistent State"/>
61 <action command="delete" search="file" path="$$profile$$/Network/Network Persistent State"/>
62 <action command="delete" search="walk.all" path="$$profile$$/GPUCache/"/>
63 <action command="delete" search="walk.all" path="$$profile$$/Pepper Data/Shockwave Flash/CacheWritableAdobeRoot/"/>
64 <action command="delete" search="walk.all" path="$$profile$$/Storage/ext/*/*def/GPUCache"/>
65 <action command="json" search="file" path="$$profile$$/Preferences" address="dns_prefetching/host_referral_list"/>
66 <action command="json" search="file" path="$$profile$$/Preferences" address="dns_prefetching/startup_list"/>
67 <action command="json" search="file" path="$$profile$$/Preferences" address="net/http_server_properties/servers"/>
68 <action command="json" search="file" path="$$base$$/Local State" address="HostReferralList"/>
69 <action command="json" search="file" path="$$base$$/Local State" address="StartupDNSPrefetchList"/>
70 <!-- Linux-specific -->
71 <action command="delete" search="walk.files" path="$XDG_CACHE_HOME/google-chrome/"/>
72 <action command="delete" search="walk.files" path="$XDG_CACHE_HOME/google-chrome-beta/"/>
73 <action command="delete" search="walk.files" path="$XDG_CACHE_HOME/google-chrome-unstable/"/>
74 <action command="delete" search="walk.files" path="~/.var/app/com.google.Chrome/cache/"/>
75 <action command="delete" search="walk.files" path="~/.var/app/com.google.ChromeDev/cache/"/>
76 <!-- macOS-specific -->
77 <action command="delete" search="walk.all" path="~/Library/Caches/Google/Chrome/" os="macos"/>
78 <!-- Windows-specific -->
79 <action command="delete" search="glob" path="$$base$$\B*.tmp"/>
80 <action command="delete" search="walk.all" path="$$profile$$\Default\Application Cache\"/>
81 <action command="delete" search="walk.files" path="$$profile$$\Cache\"/>
82 <!-- Linux stores the Code Cache under ~/.cache/ , so it doesn't need an extra rule -->
83 <action command="delete" search="walk.files" path="$$profile$$\Code Cache\"/>
84 <action command="delete" search="walk.files" path="$$profile$$\Media Cache\"/>
85 </option>
86 <option id="cookies">
87 <label>Cookies</label>
88 <description>Delete cookies, which store login information, website preferences, and tracking identifiers</description>
89 <action command="cookie" search="file" path="$$profile$$/Cookies"/>
90 <action command="delete" search="file" path="$$profile$$/Cookies-journal"/>
91 <action command="cookie" search="file" path="$$profile$$/Extension Cookies"/>
92 <action command="delete" search="file" path="$$profile$$/Extension Cookies-journal"/>
93 <action command="cookie" search="file" path="$$profile$$/Network/Cookies"/>
94 <action command="delete" search="file" path="$$profile$$/Network/Cookies-journal"/>
95 <action command="delete" search="file" path="$$profile$$/TransportSecurity"/>
96 <action command="delete" search="glob" path="$$profile$$/Storage/ext/*/*/TransportSecurity"/>
97 </option>
98 <option id="crash_reports">
99 <label>Crash reports</label>
100 <description>Delete the files</description>
101 <action command="delete" search="walk.all" path="$$base$$/Crash Reports/"/>
102 <action command="delete" search="walk.all" path="$$base$$/Crashpad/" os="macos"/>
103 </option>
104 <option id="form_history">
105 <label>Form history</label>
106 <description>A history of forms entered in websites</description>
107 <action command="chrome.autofill" search="file" path="$$profile$$/Web Data"/>
108 </option>
109 <option id="history">
110 <label>History</label>
111 <description>Delete the history which includes visited sites, downloads, and thumbnails</description>
112 <!-- keep /History before /Favicons -->
113 <action command="chrome.history" search="file" path="$$profile$$/History"/>
114 <action command="chrome.favicons" search="file" path="$$profile$$/Favicons"/>
115 <action command="delete" search="file" path="$$base$$/chrome_shutdown_ms.txt"/>
116 <action command="delete" search="file" path="$$base$$/Safe Browsing Cookies-journal"/>
117 <action command="delete" search="file" path="$$profile$$/Archived History-journal"/>
118 <action command="delete" search="file" path="$$profile$$/Archived History"/>
119 <action command="delete" search="file" path="$$profile$$/DownloadMetadata"/>
120 <action command="delete" search="file" path="$$profile$$/DIPS"/>
121 <action command="delete" search="file" path="$$profile$$/History Provider Cache"/>
122 <action command="delete" search="file" path="$$profile$$/History-journal"/>
123 <action command="delete" search="file" path="$$profile$$/MediaDeviceSalts-journal"/>
124 <action command="delete" search="file" path="$$profile$$/MediaDeviceSalts"/>
125 <action command="delete" search="file" path="$$profile$$/Network Action Predictor-journal"/>
126 <action command="delete" search="file" path="$$profile$$/Network Action Predictor"/>
127 <action command="delete" search="file" path="$$profile$$/Origin Bound Certs-journal"/>
128 <action command="delete" search="file" path="$$profile$$/Reporting and NEL-journal"/>
129 <action command="delete" search="file" path="$$profile$$/Reporting and NEL"/>
130 <action command="delete" search="file" path="$$profile$$/Shortcuts-journal"/>
131 <action command="delete" search="file" path="$$profile$$/Shortcuts"/>
132 <action command="delete" search="glob" path="$$profile$$/History Index ????-??-journal"/>
133 <action command="delete" search="glob" path="$$profile$$/History Index ????-??"/>
134 <!-- Before about January 2016 Thumbnails was an SQLite file, by Google Chrome 48 it is a folder -->
135 <action command="delete" search="file" path="$$profile$$/Thumbnails"/>
136 <action command="delete" search="walk.files" path="$$profile$$/Thumbnails"/>
137 <action command="delete" search="file" path="$$profile$$/Thumbnails-journal"/>
138 <action command="delete" search="file" path="$$profile$$/Top Sites-journal"/>
139 <action command="delete" search="file" path="$$profile$$/Top Sites"/>
140 <action command="delete" search="file" path="$$profile$$/Visited Links"/>
141 <action command="json" search="file" path="$$profile$$/Preferences" address="prefetch/search_prefetch/cache"/>
142 <action command="json" search="file" path="$$profile$$/Preferences" address="zerosuggest/cachedresults"/>
143 <action command="json" search="file" path="$$profile$$/Preferences" address="zerosuggest/cachedresults_with_url"/>
144 <!-- Windows-specific -->
145 <action command="delete" search="walk.files" path="$$profile$$\JumpListIconsMostVisited\"/>
146 <action command="delete" search="walk.files" path="$$profile$$\JumpListIconsOld\"/>
147 <action command="delete" search="walk.files" path="$$profile$$\JumpListIconsRecentClosed\"/>
148 <action command="delete" search="walk.files" path="$$profile$$\JumpListIcons\"/>
149 </option>
150 <option id="search_engines">
151 <label>Search engines</label>
152 <description translators="'Factory' means a search engine that is installed by default 'from the factory,' but this is different than a 'default search engine' https://lists.launchpad.net/launchpad-translators/msg00283.html">Reset the search engine usage history and delete non-factory search engines, some of which are added automatically</description>
153 <action command="chrome.keywords" search="file" path="$$profile$$/Web Data"/>
154 </option>
155 <option id="session">
156 <label>Session</label>
157 <description>Previously open tabs and windows</description>
158 <action command="delete" search="file" path="$$profile$$/Current Session"/>
159 <action command="delete" search="file" path="$$profile$$/Current Tabs"/>
160 <action command="delete" search="file" path="$$profile$$/Last Session"/>
161 <action command="delete" search="file" path="$$profile$$/Last Tabs"/>
162 <action command="delete" search="walk.all" path="$$profile$$/Sessions"/>
163 </option>
164 <option id="site_data">
165 <label translators="Label for cleaning option to delete site data such as LocalStorage and IndexedDB">Site data</label>
166 <description translators="Description for cleaning option. LocalStorage and IndexedDB are proper nouns: do not translate">Delete LocalStorage, IndexedDB, and other data stored by websites</description>
167 <action command="chrome.databases_db" search="file" path="$$profile$$/databases/Databases.db"/>
168 <action command="delete" search="walk.all" path="$$profile$$/databases/http*/"/>
169 <action command="delete" search="walk.all" path="$$profile$$/File System"/>
170 <action command="delete" search="walk.all" path="$$profile$$/IndexedDB"/>
171 <action command="delete" search="walk.all" path="$$profile$$/Local Storage"/>
172 <action command="delete" search="walk.all" path="$$profile$$/Pepper Data/Shockwave Flash/WritableRoot/"/>
173 <action command="delete" search="walk.all" path="$$profile$$/Service Worker"/>
174 <action command="delete" search="walk.all" path="$$profile$$/WebStorage"/>
175 <action command="delete" search="file" path="$$profile$$/QuotaManager"/>
176 <action command="delete" search="file" path="$$profile$$/QuotaManager-journal"/>
177 <action command="delete" search="walk.files" path="$$profile$$/Session Storage/"/>
178 </option>
179 <option id="sync">
180 <label>Sync</label>
181 <description>Delete the sync data (including web apps) and sign out of the browser</description>
182 <action command="delete" search="walk.files" path="$$profile$$/Sync Data/"/>
183 <action command="delete" search="walk.files" path="$$profile$$/Sync Data Backup/"/>
184 <action command="json" search="file" path="$$base$$/Local State" address="profile"/>
185 <action command="json" search="file" path="$$profile$$/Preferences" address="account_info"/>
186 <action command="json" search="file" path="$$profile$$/Preferences" address="google_services"/>
187 <action command="json" search="file" path="$$profile$$/Preferences" address="sync"/>
188 </option>
189 <option id="passwords">
190 <label>Passwords</label>
191 <description>A database of usernames and passwords as well as a list of sites that should not store passwords</description>
192 <warning>This option will delete your saved passwords.</warning>
193 <action command="delete" search="file" path="$$profile$$/Login Data"/>
194 <action command="delete" search="file" path="$$profile$$/Login Data-journal"/>
195 </option>
196 <option id="vacuum">
197 <label>Vacuum</label>
198 <description>Clean database fragmentation to reduce space and improve speed without removing any data</description>
199 <action command="sqlite.vacuum" search="file" path="$$base$$/first_party_sets.db"/>
200 <action command="sqlite.vacuum" search="file" path="$$profile$$/Account Web Data"/>
201 <action command="sqlite.vacuum" search="file" path="$$profile$$/Affiliation Database"/>
202 <action command="sqlite.vacuum" search="file" path="$$profile$$/AggregationService"/>
203 <action command="sqlite.vacuum" search="file" path="$$profile$$/BrowsingTopicsSiteData"/>
204 <action command="sqlite.vacuum" search="file" path="$$profile$$/CdmStorage.db"/>
205 <action command="sqlite.vacuum" search="file" path="$$profile$$/Conversions"/>
206 <action command="sqlite.vacuum" search="file" path="$$profile$$/Cookies"/>
207 <action command="sqlite.vacuum" search="file" path="$$profile$$/DIPS"/>
208 <action command="sqlite.vacuum" search="file" path="$$profile$$/Extension Cookies"/>
209 <action command="sqlite.vacuum" search="file" path="$$profile$$/Favicons-journal"/>
210 <action command="sqlite.vacuum" search="file" path="$$profile$$/Favicons"/>
211 <action command="sqlite.vacuum" search="file" path="$$profile$$/heavy_ad_intervention_opt_out.db"/>
212 <action command="sqlite.vacuum" search="file" path="$$profile$$/History"/>
213 <action command="sqlite.vacuum" search="file" path="$$profile$$/HistoryEmbeddings"/>
214 <action command="sqlite.vacuum" search="file" path="$$profile$$/InterestGroups"/>
215 <action command="sqlite.vacuum" search="file" path="$$profile$$/KAnonymityService"/>
216 <action command="sqlite.vacuum" search="file" path="$$profile$$/Login Data For Account"/>
217 <action command="sqlite.vacuum" search="file" path="$$profile$$/Login Data"/>
218 <action command="sqlite.vacuum" search="file" path="$$profile$$/MediaDeviceSalts"/>
219 <action command="sqlite.vacuum" search="file" path="$$profile$$/Network Action Predictor"/>
220 <action command="sqlite.vacuum" search="file" path="$$profile$$/Origin Bound Certs"/>
221 <action command="sqlite.vacuum" search="file" path="$$profile$$/previews_opt_out.db"/>
222 <action command="sqlite.vacuum" search="file" path="$$profile$$/PrivateAggregation"/>
223 <action command="sqlite.vacuum" search="file" path="$$profile$$/QuotaManager"/>
224 <action command="sqlite.vacuum" search="file" path="$$profile$$/Reporting and NEL"/>
225 <action command="sqlite.vacuum" search="file" path="$$profile$$/Safe Browsing Cookies"/>
226 <action command="sqlite.vacuum" search="file" path="$$profile$$/ServerCertificate"/>
227 <action command="sqlite.vacuum" search="file" path="$$profile$$/SharedStorage"/>
228 <action command="sqlite.vacuum" search="file" path="$$profile$$/Shortcuts"/>
229 <action command="sqlite.vacuum" search="glob" path="$$profile$$/History Index ????-??"/>
230 <!-- Before about January 2016 Thumbnails was an SQLite file, by Google Chrome 48 it is a folder -->
231 <action command="sqlite.vacuum" search="file" path="$$profile$$/Thumbnails" type="f"/>
232 <action command="sqlite.vacuum" search="file" path="$$profile$$/Top Sites"/>
233 <action command="sqlite.vacuum" search="file" path="$$profile$$/Trust Tokens"/>
234 <action command="sqlite.vacuum" search="file" path="$$profile$$/Collaboration/MessageDB"/>
235 <action command="sqlite.vacuum" search="file" path="$$profile$$/DataSharing/DataSharingDB"/>
236 <action command="sqlite.vacuum" search="file" path="$$profile$$/Web Data"/>
237 <!-- one or more levels below $$profile$$ -->
238 <action command="sqlite.vacuum" search="file" path="$$profile$$/databases/Databases.db"/>
239 <action command="sqlite.vacuum" search="file" path="$$profile$$/Shared Dictionary/db"/>
240 <action command="sqlite.vacuum" search="file" path="$$profile$$/Sync Data/SyncData.sqlite3"/>
241 <action command="sqlite.vacuum" search="file" path="$$profile$$/WebStorage/QuotaManager"/>
242 <action command="sqlite.vacuum" search="glob" path="$$profile$$/databases/http*/??"/>
243 <action command="sqlite.vacuum" search="glob" path="$$profile$$/databases/http*/?"/>
244 <!-- The three below were seen on Google Chrome on Windows before Chrome version 66 -->
245 <action command="sqlite.vacuum" search="file" path="%LocalAppData%\Google\Chrome\User Data\Default\Archived History"/>
246 <action command="sqlite.vacuum" search="file" path="%LocalAppData%\Google\Chrome\User Data\Default\Plugin Data\Google Gears\localserver.db"/>
247 <action command="sqlite.vacuum" search="file" path="%LocalAppData%\Google\Chrome\User Data\Default\Plugin Data\Google Gears\permissions.db"/>
248 </option>
249 <option id="site_preferences">
250 <label>Site preferences</label>
251 <description>Settings for individual sites</description>
252 <action command="json" search="file" path="$$profile$$/Preferences" address="profile/content_settings/exceptions"/>
253 </option>
254 </cleaner>