Bulk uninstall packages

View as Markdown
POST /api/fleet/epm/packages/_bulk_uninstall

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/epm/packages/_bulk_uninstall

Refer to Spaces for more information.

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

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

application/json

Body

  • force boolean

    Default value is false.

  • packages array[object] Required

    At least 1 element.

    Hide packages attributes Show packages attributes object
    • name string Required
    • version string Required

Responses

  • 200 application/json

    OK: A successful request.

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

    A bad request.

    Hide response attributes Show response attributes object
    • error string
    • errorType string
    • message string Required
    • statusCode number
POST /api/fleet/epm/packages/_bulk_uninstall
curl \
 --request POST 'http://localhost:5601/api/fleet/epm/packages/_bulk_uninstall' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{"force":false,"packages":[{"name":"string","version":"string"}]}'