DELETE /api/fleet/package_policies/{packagePolicyId}

Spaces method and path for this operation:

delete /s/{space_id}/api/fleet/package_policies/{packagePolicyId}

Refer to Spaces for more information.

Delete a package policy by ID.

[Required authorization] Route required privileges: fleet-agent-policies-all AND integrations-all.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • packagePolicyId string Required

Query parameters

  • force boolean

Responses

  • 200 application/json

    Successful response

    Hide response attribute Show response attribute object
    • id string Required
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • attributes Required
    • error string
    • errorType string
    • message string Required
    • statusCode number
DELETE /api/fleet/package_policies/{packagePolicyId}
curl \
 --request DELETE 'https://localhost:5601/api/fleet/package_policies/{packagePolicyId}' \
 --header "Authorization: $API_KEY" \
 --header "kbn-xsrf: true"
Response examples (200)
The package policy was successfully deleted
{
  "id": "package-policy-id-1"
}
Response examples (400)
Example of a generic error response
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}