v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-076771,7565.2 MB
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}

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