Delete security log profiles (REST API)

You can delete an existing F5 WAF for NGINX security log profile from F5 NGINX Instance Manager using the REST API. Deleting a log profile permanently removes it from the system.

To delete a security log profile, send a DELETE request to the Security Log Profiles API using the profile’s UID.

Use tools such as curl or Postman to send requests to the NGINX Instance Manager REST API. The API base URL is https://<NIM_FQDN>/api/[nim|platform]/<API_VERSION>.
All requests require authentication. For details on authentication methods, see the API overview.
Method Endpoint
DELETE /api/platform/v1/security/logprofiles/{security-log-profile-uid}
  1. Retrieve the UID:

    shell
    curl -X GET https://<NIM_FQDN>/api/platform/v1/security/logprofiles \
        -H "Authorization: Bearer <ACCESS_TOKEN>"

    Replace <NIM_FQDN> with the fully qualified domain name (FQDN) of your NGINX Instance Manager host and <ACCESS_TOKEN> with your access token.

  2. Send the delete request:

    shell
    curl -X DELETE https://<NIM_FQDN>/api/platform/v1/security/logprofiles/{log_profile_uid} \
        -H "Authorization: Bearer <ACCESS_TOKEN>"

    Replace {log_profile_uid} with the unique identifier (UID) of the log profile.