# \[BUG\] Unable upload new version second time after first upload was deleted

**URL:** <https://discourse.mozilla.org/t/bug-unable-upload-new-version-second-time-after-first-upload-was-deleted/7587>\
**Category:** addons.mozilla.org\
**Created:** [March 14, 2016, 1:28pm UTC](https://discourse.mozilla.org/t/bug-unable-upload-new-version-second-time-after-first-upload-was-deleted/7587 "2016-03-14T13:28:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanowm](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/vanowm/32/30571_2.png) [@vanowm](https://discourse.mozilla.org/u/vanowm)\
**Post date:** [March 14, 2016, 1:28pm UTC](https://discourse.mozilla.org/t/bug-unable-upload-new-version-second-time-after-first-upload-was-deleted/7587/1 "2016-03-14T13:28:22Z")

</div>

Hello.

I’ve uploaded a new version of my addon (v1.5) and right after I had to re-upload it again, because I missed a file in the package. But instead of deleting the file itself from new version I’ve decided delete the whole version instead.

After new version was deleted I tried upload the package again, but now it says the same version was previously uploaded and does not let me add it.

Perhaps there is a cache for upladed files, and after NN hours it will be automatically deleted, but still, it’s a bug in AMO, that doesn’t delete files together with versions.

P.S.  
addon in question is backforwardhistorytweaks@vano

---

<div class="post-metadata">

**Author:** ![TheOne](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/theone/32/49872_2.png) [@TheOne](https://discourse.mozilla.org/u/TheOne)\
**Post date:** [March 15, 2016, 4:44pm UTC](https://discourse.mozilla.org/t/bug-unable-upload-new-version-second-time-after-first-upload-was-deleted/7587/2 "2016-03-15T16:44:51Z")

</div>

Re-using a version number caused all sorts of problems for users, developers and reviewers, which I why AMO is no longer allowing it. For details, see  
[https://blog.mozilla.org/addons/2016/03/09/amo-updates-on-version-number-re-use/](https://blog.mozilla.org/addons/2016/03/09/amo-updates-on-version-number-re-use/)

---

<div class="post-metadata">

**Author:** ![vanowm](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/vanowm/32/30571_2.png) [@vanowm](https://discourse.mozilla.org/u/vanowm)\
**Post date:** [February 3, 2017, 2:34am UTC](https://discourse.mozilla.org/t/bug-unable-upload-new-version-second-time-after-first-upload-was-deleted/7587/3 "2017-02-03T02:34:15Z")

</div>

But since AMO is able trace if such version was downloaded or not, perhaps if nobody downloaded it re-using the version should be allowed.

Also, perhaps CDN could use the hash for verification, instead of version number?
