Skip to content

Delete Session

bedrockagentruntime_delete_session R Documentation

Deletes a session that you ended

Description

Deletes a session that you ended. You can't delete a session with an ACTIVE status. To delete an active session, you must first end it with the end_session API operation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Usage

bedrockagentruntime_delete_session(sessionIdentifier)

Arguments

sessionIdentifier

[required] The unique identifier for the session to be deleted. You can specify either the session's sessionId or its Amazon Resource Name (ARN).

Value

An empty list.

Request syntax

svc$delete_session(
  sessionIdentifier = "string"
)