# Unable to delete hostged npm component version

**URL:** <https://community.sonatype.com/t/unable-to-delete-hostged-npm-component-version/8024>\
**Category:** Sonatype Nexus Repository\
**Tags:** help, nexus-repository\
**Created:** [January 11, 2022, 3:05am UTC](https://community.sonatype.com/t/unable-to-delete-hostged-npm-component-version/8024 "2022-01-11T03:05:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![leoren.tesaluna](https://avatars.discourse-cdn.com/v4/letter/l/3be4f8/32.png) [@leoren.tesaluna](https://community.sonatype.com/u/leoren.tesaluna)\
**Post date:** [January 11, 2022, 3:05am UTC](https://community.sonatype.com/t/unable-to-delete-hostged-npm-component-version/8024/1 "2022-01-11T03:05:06Z")

</div>

We are hosting Nexus Repository Manager version 3.36.0-01 and is needing to delete a component version due to the presence of malicious code.

Component details: colors v1.4.1 / 1.4.2 / 1.4.44-liberty-2

I have deleted the component via GUI by going doing:  
Search \> colors \> colors Version 1.4.1 \> “Delete Component” button  
For example (this screenshot is for 1.4.0)

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/5/55f025b683c5ab4a8b46f51325ba82a38c67a4f7.png)

I can see the versions are no longer there in the GUI but when do do the following command locally

```auto
npm info --registry https://nexus.cd.auspost.com.au/nexus/repository/auspost-ddc-npmjs/ colors versions

```

We can see the version still exists:

```auto
npm info --registry https://nexus.cd.auspost.com.au/nexus/repository/auspost-ddc-npmjs/ colors versions
[
  '0.3.0', '0.5.0',
  '0.5.1', '0.6.0-1',
  '0.6.0', '0.6.1',
  '0.6.2', '1.0.0',
  '1.0.1', '1.0.2',
  '1.0.3', '1.1.0',
  '1.1.1', '1.1.2',
  '1.2.0-rc0', '1.2.0',
  '1.2.1', '1.2.2',
  '1.2.3', '1.2.4',
  '1.2.5', '1.3.0',
  '1.3.1', '1.3.2',
  '1.3.3', '1.4.0',
  '1.4.1', '1.4.2',
  '1.4.44-liberty-2'
]

```

Is there a way to rebuild the metadata in our current version?

Thanks

---

_[View the full topic](https://community.sonatype.com/t/unable-to-delete-hostged-npm-component-version/8024)._
