Elastic Agents

Delete an uploaded file

Spaces method and path for this operation:

<div><span class="operation-verb delete">delete</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/agents/files/{fileId}</span></div>

Refer to Spaces for more information.

Delete a file uploaded by an agent.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all.

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

Request

  • Base URL
    https://localhost:5601
  • URL
    https://localhost:5601/api/fleet/agents/files/{fileId}
  • Auth
    • API key in header Authorization
    • or HTTP basic

Path parameters

fileIdstring required

The ID of the uploaded file

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Response

Successful response

deletedboolean required
idstring required

Changes

No operation changes recorded.