# How to empty cache on stratum 0

**URL:** <https://cernvm-forum.cern.ch/t/how-to-empty-cache-on-stratum-0/344>\
**Category:** Publisher / Stratum 0\
**Created:** [August 28, 2023, 11:31pm UTC](https://cernvm-forum.cern.ch/t/how-to-empty-cache-on-stratum-0/344 "2023-08-28T23:31:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rptaylor](https://cernvm-forum.cern.ch/letter_avatar_proxy/v4/letter/r/49beb7/32.png) [@rptaylor](https://cernvm-forum.cern.ch/u/rptaylor)\
**Post date:** [August 28, 2023, 11:31pm UTC](https://cernvm-forum.cern.ch/t/how-to-empty-cache-on-stratum-0/344/1 "2023-08-28T23:31:26Z")

</div>

Hi,

Each /var/spool/cvmfs/\*/cache directory is using several GB of storage, is there a way to empty those caches?

Thanks.

---

<div class="post-metadata">

**Author:** ![dwd](https://cernvm-forum.cern.ch/letter_avatar_proxy/v4/letter/d/b9bd4f/32.png) [@dwd](https://cernvm-forum.cern.ch/u/dwd)\
**Post date:** [August 29, 2023, 7:07pm UTC](https://cernvm-forum.cern.ch/t/how-to-empty-cache-on-stratum-0/344/2 "2023-08-29T19:07:31Z")

</div>

Yes, there’s more than one way. If you umount `/cvmfs/repo` and `/var/spool/cvmfs/repo/rdonly` (where `repo` is the repository name) you could rm -rf the contents.

Alternatively, you can use `cvmfs_talk -p` to connect to the cvmfs2 process’ socket and tell it to clean up, e.g.

```auto
cvmfs_talk -p /var/spool/cvmfs/repo/cvmfs_io cleanup 0

```

Of course, the next time files are accessed for that repository, the cache will fill up again. The size of the cache is specified by `CVMFS_QUOTA_LIMIT` in `/etc/cvmfs/repositories.d/repo/client.conf`.

---

<div class="post-metadata">

**Author:** ![system](https://cernvm-forum.cern.ch/uploads/default/original/1X/3e336816dfbfe00295701fad16d3bf5b3fca3a02.jpeg) [@system](https://cernvm-forum.cern.ch/u/system)\
**Post date:** [September 13, 2023, 7:08pm UTC](https://cernvm-forum.cern.ch/t/how-to-empty-cache-on-stratum-0/344/3 "2023-09-13T19:08:02Z")

</div>

Closed on September 13, 2023, 7:08pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
