简体   繁体   中英

How to rebuild nexus repository metadata using REST API?

I found out in the nexus REST API the /service/local/metadata/{domain}/{target}/content.

But when I try to execute it (for example with curl)

curl -v --request DELETE  --user "login:password"  --silent http://nexusHost/local/metadata/repositories/myRepository/content

I got a this message back and the work is not done

HTTP/1.1 405 La m�thode HTTP DELETE n''est pas support�e par cette URL

Can you help me make this work ? thanks.

Note: using Nexus 2.11.3-01

You just mispell you request! (you forgot to add service/ before local.

curl -v --request DELETE  --user "login:password"  --silent http://nexusHost/service/local/metadata/repositories/myRepository/content

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM