Delete an uploaded file
Delete a file uploaded by an agent.
[Required authorization] Route required privileges: ALL of [fleet-agents-all].
Path parameters
-
fileId
string Required
DELETE
/api/fleet/agents/files/{fileId}
curl \
--request DELETE http://localhost:5622/api/fleet/agents/files/{fileId} \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: true"
Response examples (200)
{
"deleted": true,
"id": "string"
}
Response examples (400)
{
"error": "string",
"errorType": "string",
"message": "string",
"statusCode": 42.0
}