EPM /api/fleet/epm/packages/_bulk_uninstall fails in v8.17.4

Hi,
I am trying out the EPM package manager to install and uninstall integration packages in kibana.

URL used:

:POST kbn:/api/fleet/epm/packages/_bulk_uninstall

{"force":false,"packages":[{"name":"mongodb_atlas","version":"1.1.0"}]}

While this works in v9.1.0, the same syntax throws below error in v 8.17.4

Error:{

  "statusCode": 400,

"error": "Bad Request",

"message": """[request body]: types that failed validation:

- [request body.0.packages]: definition for this key is missing

- [request body.1]: expected value to equal [null]"""

}

Any leads would be helpful.
Thanks!

Hi @Pratiksha_Aigal, Welcome to the community...

I see the same thing, let me see I will ask internally to see if I get an answer

BTW Single Delete works

Single Delete work

DELETE kbn:/api/fleet/epm/packages/eset_protect/1.8.0
{
  "items": [
    {
      "id": "eset_protect-186ccfba-ed02-4f7a-a46d-a58ec636688a",
      "type": "dashboard"
    },
    {
      "id": "eset_protect-99f893a6-1b3d-412f-9a03-46035f2fa9d5",
      "type": "dashboard"
    },
........
    {
      "id": "logs-eset_protect.event@custom",
      "type": "component_template"
    }
  ]
} 
1 Like

Hi @Pratiksha_Aigal

The new bulk uninstall feature was introduced only in 9.1, (with some a new UI, and some other APIs to manage bulk operation on packages). The error you encounter in 8.17 seems expected, as it’s probably the regular POST kbn:/api/fleet/packages/{pkgName} that is handling your request.

1 Like

okay that helps, Thanks!

@Pratiksha_Aigal

There is a version selector for the docs... I was looking at the wrong version as well.