Delete package policy

POST /api/fleet/package_policies/delete

Spaces method and path for this operation:

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

Refer to Spaces for more information.

Headers

  • kbn-xsrf string Required

    Kibana's anti Cross-Site Request Forgery token. Can be any string value.

application/json

Body

  • force boolean
  • packagePolicyIds array[string] Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string Required
    • name string
    • success boolean Required
  • 400 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
POST /api/fleet/package_policies/delete
curl \
 --request POST 'http://localhost:5601/api/fleet/package_policies/delete' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: string" \
 --data '{"force":true,"packagePolicyIds":["string"]}'