Delete rpm from yum repository from consile

Hello! I need to remove old rpm from yum repository. How can I do this using the curl command from the console? Thanks.

You can send a DELETE request for the rpm:

curl -v -u admin:admin123 -X DELETE http://localhost:8081/repository/yumhosted/foo/bar/my-webapp-1.7-1.noarch.rpm

Rich

1 Like

Thank you)