# Nexus3.27 how to control the bag version number

**URL:** <https://community.sonatype.com/t/nexus3-27-how-to-control-the-bag-version-number/5653>\
**Category:** Sonatype Nexus Repository\
**Created:** [January 6, 2021, 10:15am UTC](https://community.sonatype.com/t/nexus3-27-how-to-control-the-bag-version-number/5653 "2021-01-06T10:15:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![test](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@test](https://community.sonatype.com/u/test)\
**Post date:** [January 6, 2021, 10:15am UTC](https://community.sonatype.com/t/nexus3-27-how-to-control-the-bag-version-number/5653/1 "2021-01-06T10:15:03Z")

</div>

Hello everyone, I want to control the some repo history version number, for example, there are a bag name `abc`, but most of the developer don’t delete the old version, and some bag don’t update version frequently.  
I know the clean up policy can delete some old version bag, but I just want to control the version number of it. For example, when I set this repo bag that the max version number is 50, if there are 49 bags, the developer must to delete the old version bag by themself and then update.

[https://blog.sonatype.com/keeping-your-nexus-repositories-clean-just-got-easier](https://blog.sonatype.com/keeping-your-nexus-repositories-clean-just-got-easier)  
this website is the official website about ‘clean up policy’.

I know in the Nexus3.15 version that there are a function named “Asset History Limit”.

thanks.

---

<div class="post-metadata">

**Author:** ![mmartz](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mmartz](https://community.sonatype.com/u/mmartz)\
**Post date:** [January 8, 2021, 3:49pm UTC](https://community.sonatype.com/t/nexus3-27-how-to-control-the-bag-version-number/5653/2 "2021-01-08T15:49:53Z")

</div>

If you are using a maven repo and you want to cleanup snapshots I believe there is a task that will delete some number of old snapshots. That said, if I’m understanding what you want to do, there is no current functionality in place to do that. I believe this ticket (if/when implemented) would do what you want so you may want to vote/follow it: [https://issues.sonatype.org/browse/NEXUS-10821](https://issues.sonatype.org/browse/NEXUS-10821)

---

<div class="post-metadata">

**Author:** ![test](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@test](https://community.sonatype.com/u/test)\
**Post date:** [January 11, 2021, 1:47am UTC](https://community.sonatype.com/t/nexus3-27-how-to-control-the-bag-version-number/5653/3 "2021-01-11T01:47:24Z")

</div>

![download](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/5/598e1a540a9415805901f417b5ea2d977c297145.png)  
yes, thanks for answer, but I want to find this function is the new version in apt hosted repo.

---

<div class="post-metadata">

**Author:** ![mmartz](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mmartz](https://community.sonatype.com/u/mmartz)\
**Post date:** [January 11, 2021, 3:24pm UTC](https://community.sonatype.com/t/nexus3-27-how-to-control-the-bag-version-number/5653/4 "2021-01-11T15:24:53Z")

</div>

Again we do not have any functionality for removing versions by version number.
