Artifact sha1 value and deletion - Sonatype Nexus Repository / Best Practices - Sonatype Community
Artifact sha1 value and deletion
post by sameer29nov on Dec 18, 2020
Hello There,
We have one shell script which returns sha1 value from .properties file, and we do perform clean up with that from GUI under search.
In some case single sha1 value shows multiple records and we are not able to see those artifacts in GUI, does that mean those were soft deleted not hard deleted? That is the reason we are getting multiple records.
Single sha1 value shows multiple records in search, why are we getting multiple records?
Also, what is the best practice we can use to delete artifact with sha1 value?
Please guide us, Thank you
post by dsawa on Dec 18, 2020
In some case single sha1 value shows multiple records
single sha1 value shows multiple records in search, why are we getting multiple records?
That could happen if you have the same asset stored across multiple repositories as the storage of each repository is kept separate.
we are not able to see those artifacts in GUI
That could be either because it was soft-deleted or there could be a bug causing the browse nodes missing. For the latter case, there’s a task you can run to re-create browse nodes (they are used only by GUI): Repair - Rebuild repository browse.
If you’re looking to remove soft-deleted packages, you can simply use a task Admin - Compact blob store.
You can find more information about tasks in our documentation: Tasks