# How to keep some of the player's data when clearing the leaderboard each month

**URL:** <https://forum.heroiclabs.com/t/how-to-keep-some-of-the-players-data-when-clearing-the-leaderboard-each-month/5715>\
**Category:** Runtime Framework\
**Tags:** leaderboards\
**Created:** [October 18, 2024, 3:42am UTC](https://forum.heroiclabs.com/t/how-to-keep-some-of-the-players-data-when-clearing-the-leaderboard-each-month/5715 "2024-10-18T03:42:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hxw956631920](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/hxw956631920/32/2229_2.png) [@hxw956631920](https://forum.heroiclabs.com/u/hxw956631920)\
**Post date:** [October 18, 2024, 3:42am UTC](https://forum.heroiclabs.com/t/how-to-keep-some-of-the-players-data-when-clearing-the-leaderboard-each-month/5715/1 "2024-10-18T03:42:07Z")

</div>

Our game needs to keep 10% of the player’s score when they are cleared every month, but there is no callback function for regular clearing. What should I do? thanks

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [October 22, 2024, 2:35pm UTC](https://forum.heroiclabs.com/t/how-to-keep-some-of-the-players-data-when-clearing-the-leaderboard-each-month/5715/2 "2024-10-22T14:35:40Z")

</div>

Hello @hxw956631920, I’m not sure what you mean with “regular clearing”, but if you need to you could write these scores elsewhere with a custom leaderboard reset function by going over the records.

Also, previous records are never deleted, you can still fetch them by calling the leaderboard records list functions with the previous cycles expiry times.

Best.
