Tony Chemit
Tony Chemit

Reputation: 1205

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

Upvotes: 2

Views: 3074

Answers (1)

Arktan
Arktan

Reputation: 479

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

Upvotes: 4

Related Questions