Hi, I have a confluence page which has lot of attachments. I need to delete all the attachments using rest api. Is there any way to achieve this?
I tried below, getting 403
curl -u <span>${USER_NAME}</span><span>:</span><span>${USER_PASSWORD}</span> -H <span>'Content-Type: application/json'</span> -H <span>'Accept: application/json'</span> -X DELETE <span>${CONFLUENCE_BASEURL}</span><span>'/rest/api/content/'</span><span>${ATTACHMENT_ID}</span><span>'?status=current'</span>