Spaces method and path for this operation:
post /s/{space_id}/api/fleet/epm/packages/_bulk_uninstall
Refer to Spaces for more information.
Uninstall multiple packages in a single operation.
[Required authorization] Route required privileges: integrations-all AND fleet-agent-policies-all.
POST
/api/fleet/epm/packages/_bulk_uninstall
curl \
--request POST 'https://localhost:5601/api/fleet/epm/packages/_bulk_uninstall' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"packages":[{"name":"aws"},{"name":"gcp"}]}'
Request example
Uninstall multiple packages
{
"packages": [
{
"name": "aws"
},
{
"name": "gcp"
}
]
}
Response examples (200)
Bulk uninstall task initiated
{
"taskId": "task-id-1"
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}