# Q about Staggered Versioning & deletion

**URL:** https://forum.syncthing.net/t/q-about-staggered-versioning-deletion/9905
**Category:** Support
**Created:** [June 7, 2017, 3:05pm UTC](https://forum.syncthing.net/t/q-about-staggered-versioning-deletion/9905 "2017-06-07T15:05:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tom](https://forum.syncthing.net/user_avatar/forum.syncthing.net/tom/32/3706_2.png) [@Tom](https://forum.syncthing.net/u/Tom)
#### Post date: [June 7, 2017, 3:05pm UTC](https://forum.syncthing.net/t/q-about-staggered-versioning-deletion/9905/1 "2017-06-07T15:05:14Z")

</div>

Hi all,

When does ST iterate through a .stversions folder to clean up files with age \> Max Age ?

Daily at midnight? Hourly? On rescan of shared folder? None of the above ?

source code seems to imply hourly : `cleanInterval = 3600 // Default: clean once per hour`

thx, Tom

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [June 7, 2017, 6:03pm UTC](https://forum.syncthing.net/t/q-about-staggered-versioning-deletion/9905/2 "2017-06-07T18:03:26Z")

</div>

Correct. It also cleans old versions of the file it is versioning, when it versions a file.

Looking at it now, I can see the hourly cleaning getting expensive once there are a lot of files versioned…

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [July 7, 2017, 6:05pm UTC](https://forum.syncthing.net/t/q-about-staggered-versioning-deletion/9905/3 "2017-07-07T18:05:28Z")

</div>

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