Remove Loggers

Removes specified loggers. Administrator privileges are required to call this API.

HTTP Request

DELETE /api/sonar/loggers
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \
     -d guids="54157629-74f7-4d80-be5a-8cb8f0c71087" \
     -X DELETE https://HOSTNAME/api/sonar/loggers
Request Parameters
KeyRequiredTypeDescriptionNote
guidsOList of stringsLogger GUID listComma-separated GUID list
drop_tableXBooleanWhether to drop table as wellDefault: false

Success Response

{
  "failures": []
}

Error Responses

Table is referenced by other loggers

HTTP status code 200

{
  "failures": [
    {
      "id": "3a2e6570-3a5e-4b2f-982f-037eff266139",
      "name": "WTMP2",
      "reason": "table is referenced by other loggers: WTMP"
    }
  ]
}
Logger identifier is not in valid GUID format

HTTP status code 400

{
  "error_code": "invalid-param-type",
  "error_msg": "guids should be guid type."
}
No administrator privileges

HTTP status code 500

{
  "error_code": "illegal-state",
  "error_msg": "no-permission"
}