I am using cURL command to delete an artifact package, but there I am getting the following error
< HTTP/1.1 403 Forbidden
< Server: Nexus/3.30.0-01 (OSS)
< X-Content-Type-Options: nosniff
< Content-Security-Policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
< X-XSS-Protection: 1; mode=block
< Content-Length: 0
Here I am using this command
curl -v -u ${NEXUS_CREDS} -X “DELETE” http://${SONATYPE_NEXUS_SERVICE_SERVICE_HOST}:${SONATYPE_NEXUS_SERVICE_SERVICE_PORT}/repository/${NEXUS_REPO_NAME}/${APP_NAME}/${PACKAGE}
This command is running as a Jenkins job and all variables are assigned values. Can anyone please confirm why Nexus is giving this error and how to find the root cause.