BedrockAgentCore / Client / delete_event
delete_event¶
- BedrockAgentCore.Client.delete_event(**kwargs)¶
 Deletes an event from an AgentCore Memory resource. When you delete an event, it is permanently removed.
To use this operation, you must have the
bedrock-agentcore:DeleteEventpermission.See also: AWS API Documentation
Request Syntax
response = client.delete_event( memoryId='string', sessionId='string', eventId='string', actorId='string' )
- Parameters:
 memoryId (string) –
[REQUIRED]
The identifier of the AgentCore Memory resource from which to delete the event.
sessionId (string) –
[REQUIRED]
The identifier of the session containing the event to delete.
eventId (string) –
[REQUIRED]
The identifier of the event to delete.
actorId (string) –
[REQUIRED]
The identifier of the actor associated with the event to delete.
- Return type:
 dict
- Returns:
 Response Syntax
{ 'eventId': 'string' }
Response Structure
(dict) –
eventId (string) –
The identifier of the event that was deleted.
Exceptions
BedrockAgentCore.Client.exceptions.ServiceQuotaExceededExceptionBedrockAgentCore.Client.exceptions.AccessDeniedExceptionBedrockAgentCore.Client.exceptions.ValidationExceptionBedrockAgentCore.Client.exceptions.InvalidInputExceptionBedrockAgentCore.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCore.Client.exceptions.ThrottledExceptionBedrockAgentCore.Client.exceptions.ServiceException