Spaces method and path for this operation:
delete /s/{space_id}/api/fleet/agents/files/{fileId}
Refer to Spaces for more information.
Delete a file uploaded by an agent.
[Required authorization] Route required privileges: fleet-agents-all.
DELETE
/api/fleet/agents/files/{fileId}
curl \
--request DELETE 'https://localhost:5601/api/fleet/agents/files/{fileId}' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: true"
Response examples (200)
Uploaded file successfully deleted
{
"deleted": true,
"id": "file-id-1"
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}