我部署了一些工件,并复制粘贴了这些工件的错误名称。我记得手动操作存储库内容会带来问题。
处理这些情况的推荐方法是什么?
编辑:
我认为无法通过 Web 界面从托管存储库中删除工件。现在我看到在“浏览存储”部分中我可以删除工件目录,这是我猜的推荐方式。
I deployed some artifacts and I copy-pasted wrong name of those artifacts. I remember that manual playing with repository content brings problems.
What is the recommended way for dealing with these situations?
EDITED:
I thought there was no way of deleting artifacts from hosted repositories via web interface. Now I see that in the "Browse storage" section I can delete the artifact directory, which is the the recommended way I guess.
发布评论
评论(5)
是的,过去我只是使用 Web GUI 删除了工件,没有问题
Yup, in the past I've just deleted artifacts using the web GUI, no problems
以管理员身份登录,删除要删除的工件,然后重建此存储库的索引。
login as administrator, delete the artifacts you want to remove, and rebuild index for this repo.
在我的安装(Nexus 3.23,带有Python存储库)中,“删除组件”在浏览界面的WebGUI中不可用(甚至以本地管理员身份登录)。
但是,如果您使用“高级搜索”功能并选择所需的组件/包,则可以使用删除功能,因此这是我发现删除包的唯一方法。
On my installation (Nexus 3.23, with a Python repository), the "delete component" isn't available in the WebGUI from the browse interface (even logged in as local admin).
However, if you use the "Advanced search" feature and select the desired component/package, then the delete function is available, so it's the only way I found to delete a package.
在 Nexus 2 中,您可以右键单击该元素并选择“删除”:
In Nexus 2, you can right-click on the element and select "Delete":
1)点击设置
2)单击存储库
3)单击您要删除的存储库
4)点击左上角的删除存储库
5)存储库将被删除
1)click on settings
2)click on Repositories
3)click on the Repository that you wish to delete
4)click on delete Repository on the top left corner
5)Repository will be deleted