如何从Nexus中删除整组工件?

时间:2017-03-13 06:58:50

标签: nexus delete-file

我想从Nexus Repository Manager中删除整个项目版本。我尝试执行以下命令但没有成功:

curl --request DELETE --user "user:password" 
https://nexus.website.lk/repository/snapshots/com/ksiot/edge_node_windows_service_v2/edge_node_windows_service_v2/1.0.10-SNAPSHOT`

当我在项目中指定en artifact时,它可以正常工作:

curl --request DELETE --user "user:password" 
https://nexus.website.lk/repository/snapshots/com/ksiot/edge_node_windows_service_v2/edge_node_windows_service_v2/1.0.10-SNAPSHOT/prometheus_libs-0.1-SNAPSHOT.pom

1 个答案:

答案 0 :(得分:0)

如果您使用的是Nexus 2.x,则可以从/storage中删除该文件夹,然后重新编制索引。

作为备注:请确保从Nexus删除版本是绝对例外 - 通常,发布版本应该永久保留"确保构建的可重复性。