profile-cleaner(1)
π profile-cleaner β the manual, bestie π
β¨ NAME β¨
Okay so profile-cleaner is literally here to shrink browser profiles and some email program's profiles by organizing their sqlite databases with sqlite3's vacuum and reindex functions. And yes, the word βbrowserβ is used loosely β profile-cleaner happily works on some email clients too, no cap. π
πΈ SYNOPSIS πΈ
profile-cleaner [option]
π¦ DESCRIPTION π¦
So profile-cleaner is a very simple shell script that invokes sqlite3 to vacuum and reindex databases belonging to supported browsers and email clients. It's compatible with profile-sync-daemon, so users need not stop psd before calling profile-cleaner. In fact, profiles will clean much faster when they are synced to tmpfs via psd. It's giving efficiency, honestly. β¨
π OPTIONS π
One bullet per option, bestie β keep up:
bβ clean brave's profile πcβ clean chromium's profileckβ clean conkeror's profile(s)*eβ clean edge's profilefβ clean firefox's profile(s)*faβ clean falkon's profilegcβ clean google-chrome's profilehβ clean heftig aurora's profile(s)*iβ clean icecat's profile(s)*idβ clean icedove's profileixβ clean Inox's profilelβ clean Librewolf's profilemβ clean midori's profileoβ clean opera's profiletβ clean thunderbird's profile(s)*toβ clean tor-browser's profilesβ clean seamonkey's profile(s)*pmβ clean palemoon's profile(s)*pβ clean the defined pathsvβ clean vivaldi's profile
*Profile-cleaner will parse the respective profiles.ini file and clean all profiles defined therein. iykyk β all the profiles in there get the treatment. π«Ά
π CONFIG FILE π
Profile-cleaner will create $HOME/.config/profile-cleaner.conf the first time it is invoked. Users may define a color scheme therein based on their terminal background color. The default is a dark scheme for dark colored terminals. The file is commented and self-explanatory. So cute, so customizable. π
β EXAMPLES β
Clean all firefox profiles:
$ profile-cleaner f
Clean chromium profile:
$ profile-cleaner c
Clean the user defined profile:
$ profile-cleaner p /path/to/profile
π SUPPORTED BROWSERS AND EMAIL CLIENTS π
Currently, the following are supported:
- Brave (stable, beta, dev and nightly)
- Chromium (stable,beta,dev)
- Conkeror
- Edge
- Firefox (stable,beta,aurora)
- Google-chrome (stable,beta,dev)
- Heftig's version of Aurora (
https://bbs.archlinux.org/viewtopic.php?id=117157) - Inox (
https://bbs.archlinux.org/viewtopic.php?id=198763) - Midori
- Newsbeuter
- Opera (stable, next, and developer)
- Seamonkey
- Thunderbird
- Tor-browser
- Vivaldi (stable and snapshot)
That's the whole roster β no gatekeeping. π
π₯ SAMPLE OUTPUT π₯
Sample output invoking the firefox option (your mileage will vary).
$ profile-cleaner f
/home/facade/.mozilla/firefox/zee52krz.default/cookies.sqlite reduced by .87 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/signons.sqlite reduced by .41 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/downloads.sqlite reduced by .56 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/chromeappsstore.sqlite reduced by .03 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/urlclassifier3.sqlite reduced by 43.10 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/formhistory.sqlite reduced by .11 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/addons.sqlite reduced by 0 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/permissions.sqlite reduced by 0 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/content-prefs.sqlite reduced by 0 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/extensions.sqlite reduced by 0 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/webappsstore.sqlite reduced by 0 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/OfflineCache/index.sqlite reduced by 0 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/search.sqlite reduced by 0 Mbytes
/home/facade/.mozilla/firefox/zee52krz.default/places.sqlite reduced by 9.98 Mbytes
firefox profile reduced by 55.06 Mbytes
Look at those Mbytes leaving the chat. Obsessed. β¨
π«Ά CONTRIBUTE π«Ά
Should you wish to contribute to this code, please fork and send a pull request. Source is freely available on github: https://github.com/graysky2/profile-cleaner
Fork it, fix it, send the PR β main character open-source energy. π
π BUGS π
None known.
π AUTHOR π
graysky (therealgraysky AT proton DOT me)
π§ SEE ALSO π§
profile-sync-deamon (1)
π And that's the profile-cleaner(1) manual β source/version tag: profile-cleaner(1), dated 29 May 2023. Go forth and vacuum, bestie! π
π¦ where this page comes from
- arch rolling: profile-cleaner 2.46-1 Β· MIT
- nixos 26.05: profile-cleaner 2.46
- nixpkgs unstable: profile-cleaner 2.46
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms