title: Nexus: rebuild metadata using the REST API witout being an admin
body: <p>I am trying to rebuild the metadata for a particular artifact in Nexus. I want to use the REST API:</p>
  
  <pre><code>DELETE /service/local/metadata/repositories/myRepository/content
  </code></pre>
  
  <p>So far it is working well. However, I need the <code>Nexus Administrator Role</code> for the command to work. Since I am building in a large environment with lots of users using Ant (which is automated by Jenkins) I would love to use another user, possibly just dedicated to refreshing the metadata, with only the required privileges (but it seems like that privilege is admin). I don't want my <code>build.xml</code> to have admin credentials!</p>
  
  <p>I am thinking of some workarounds such as calling a separate Jenkins job with hidden credentials, or add a post-build step in the build job... It all just sounds too ugly.</p>
  
  <p>Any thoughts or suggestions?</p>
  
  <p>Thanks
  Phil</p>