<?xml version="1.0" encoding="UTF-8"?>
<!--

    BleachBit
    Copyright (C) 2008-2023 Andrew Ziem
    https://www.bleachbit.org

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

-->
<cleaner id="safari" os="windows">
  <label>Safari</label>
  <description>Web browser</description>
  <option id="cache">
    <label>Cache</label>
    <description>Delete the web cache, which reduces time to display revisited pages</description>
    <action command="delete" search="file" path="$localappdata\Apple Computer\Safari\Cache.db"/>
  </option>
  <option id="cookies">
    <label>Cookies</label>
    <description>Delete cookies, which contain information such as web site preferences, authentication, and tracking identification</description>
    <action command="delete" search="file" path="$APPDATA\Apple Computer\Safari\Cookies\Cookies.plist"/>
    <action command="delete" search="walk.files" path="$localappdata\Apple Computer\Safari\LocalStorage\"/>
  </option>
  <option id="history">
    <label>History</label>
    <description>List of visited web pages</description>
    <action command="delete" search="file" path="$APPDATA\Apple Computer\Safari\History.plist"/>
    <action command="delete" search="file" path="$APPDATA\Apple Computer\Safari\LastSession.plist"/>
    <action command="delete" search="walk.files" path="$localappdata\Apple Computer\Safari\History\"/>
    <action command="delete" search="walk.files" path="$localappdata\Apple Computer\Safari\Webpage Previews\"/>
  </option>
  <option id="vacuum">
    <label>Vacuum</label>
    <description>Clean database fragmentation to reduce space and improve speed without removing any data</description>
    <action command="sqlite.vacuum" search="file" path="$APPDATA\Apple Computer\Safari\PubSub\Database\Database.sqlite3"/>
    <action command="sqlite.vacuum" search="glob" path="$localappdata\Apple Computer\Safari\Databases\*\*db"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Apple Computer\Safari\Databases\Databases.db"/>
    <action command="sqlite.vacuum" search="glob" path="$localappdata\Apple Computer\Safari\LocalStorage\*.localstorage"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Apple Computer\Safari\SafeBrowsing.db"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Apple Computer\Safari\WebpageIcons.db"/>
  </option>
</cleaner>
