Delete file uploaded by agent

DELETE /api/fleet/agents/files/{fileId}

Responses

  • 200 application/json; Elastic-Api-Version=2023-10-31

    OK

    Hide response attribute Show response attribute object
  • 400 application/json; Elastic-Api-Version=2023-10-31

    Generic Error

    Hide response attributes Show response attributes object
DELETE /api/fleet/agents/files/{fileId}
curl \
 -X DELETE http://api.example.com/api/fleet/agents/files/{fileId}
Response examples (200)
{
  "body": {
    "deleted": true,
    "id": "string"
  }
}
Response examples (400)
{
  "error": "string",
  "message": "string",
  "statusCode": 42.0
}