Spaces method and path for this operation:
delete /s/{space_id}/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}
Refer to Spaces for more information.
Delete an attachment. By default performs a soft delete (can be restored). Use permanent=true to permanently remove unreferenced attachments.
[Required authorization] Route required privileges: read_agent_builder.
Path parameters
-
The unique identifier of the conversation.
-
The unique identifier of the attachment to delete.
DELETE
/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}
curl \
--request DELETE 'https://localhost:5601/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: true"
Response examples (200)
Permanent delete attachment response example
Example response for permanent delete (cannot be restored)
{
"success": true,
"permanent": true
}
Example response for soft delete (can be restored)
{
"success": true,
"permanent": false
}