AgentsforBedrockRuntime / Client / delete_session
delete_session#
- AgentsforBedrockRuntime.Client.delete_session(**kwargs)#
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 EndSession API operation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.See also: AWS API Documentation
Request Syntax
response = client.delete_session( sessionIdentifier='string' )
- Parameters:
sessionIdentifier (string) –
[REQUIRED]
The unique identifier for the session to be deleted. You can specify either the session’s
sessionId
or its Amazon Resource Name (ARN).- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
AgentsforBedrockRuntime.Client.exceptions.ResourceNotFoundException
AgentsforBedrockRuntime.Client.exceptions.ValidationException
AgentsforBedrockRuntime.Client.exceptions.InternalServerException
AgentsforBedrockRuntime.Client.exceptions.ThrottlingException
AgentsforBedrockRuntime.Client.exceptions.AccessDeniedException