GitLab API文档显示了如何delete images/tags by given tag or in bulk。删除单个标签可以正常工作,但是批量删除只会返回“ 202”,而且似乎什么也没发生。
删除单个标签可以正常工作,返回码为“ 200”
curl --request DELETE --header "PRIVATE-TOKEN: <.....>" "https://gitlab.example.net/api/v4/projects/development%2Ffoo%2Fbar/registry/repositories/11/tags/20190704T130204"
批量删除似乎没有任何作用。返回码为“ 202”,在响应正文中找不到更多信息
curl --request DELETE --data "name_regex=.*" --header "PRIVATE-TOKEN: <.....>" "https://gitlab.example.net/api/v4/projects/development%2Ffoo%2Fbar/registry/repositories/11/tags"