Skip to content

Delete Event

bedrockagentcore_delete_event R Documentation

Deletes an event from an AgentCore Memory resource

Description

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:DeleteEvent permission.

Usage

bedrockagentcore_delete_event(memoryId, sessionId, eventId, actorId)

Arguments

memoryId

[required] The identifier of the AgentCore Memory resource from which to delete the event.

sessionId

[required] The identifier of the session containing the event to delete.

eventId

[required] The identifier of the event to delete.

actorId

[required] The identifier of the actor associated with the event to delete.

Value

A list with the following syntax:

list(
  eventId = "string"
)

Request syntax

svc$delete_event(
  memoryId = "string",
  sessionId = "string",
  eventId = "string",
  actorId = "string"
)