Artifact sha1 value and deletion

Hello There,

We have one shell scrip 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, is 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 we are getting multiple records?

Also what is the best practice we can use to delete artifact with sha1 value.

Please guide us, Thank you

SAM

In some case single sha1 value shows multiple records

single sha1 value shows multiple records in search why we are getting multiple records?

That could happen if you have the same asset stored accross 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

1 Like