Yeah, I mean, "cache" is just cache. I think critical data files are stored
elsewhere.

You can delete files based on time (last modified) time.

https://www.man7.org/linux/man-pages/man1/find.1.html

The section about "Tests" will cover the mtime and other useful flags.

You can pair that with "-exec rm -f '{}' " to blindly remove them.

find '/home/joe/.cache/google-chrome' -type f -mtime +7 -exec rm -f '{}' \;

That's what I got from memory and typing on my phone, in bed, LOL. If
that's not it, then it'll get you really close, but I think that's a good
command.

--
Thanks,
Alexander

Sent from my Google Pixel 7 Pro

On Sun, Aug 4, 2024, 18:19 joe--- via PLUG-discuss <
plug-discuss@lists.phxlinux.org> wrote:

> How crucial are the thousands of cache
> files cluttering up our computers?
>
> /home/joe/.cache/google-chrome/Default
> drwx 3   4096 Apr  4 2019 Storage       empty
> drwx 4   4096 Jan 21 2020 Code Cache/js 6290 files
> drwx 3 471040 Jan 24 2022 Cache
> /.cache/google-chrome/Default/Cache/Cache_Data
> *** 14197 files from 2023 to a week ago.
>
> Is there any risk in deleting all this clutter?
>
> What is the command syntax to selectively delete
> files between certain dates and/or all those
> older than a certain date?
>
> == searching for advice, I found this:
> https://www.zdnet.com › Business › Google
> Apr 3, 2020 — These hidden cache files are
> bloating your Google Chrome. Google Chrome
> could be storing a hundred thousand cached
> files on your computer ...
> Q: Is it safe to delete Google cache files?
> A: Clearing your browser cache does not
> delete those excess files.
> by: zdnet ~ April 3, 2020
> =====
>
> ---------------------------------------------------
> PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
---------------------------------------------------
PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Reply via email to