BedrockAgentCore / Client / batch_delete_memory_records

batch_delete_memory_records

BedrockAgentCore.Client.batch_delete_memory_records(**kwargs)

Deletes multiple memory records in a single batch operation from the specified memory.

See also: AWS API Documentation

Request Syntax

response = client.batch_delete_memory_records(
    memoryId='string',
    records=[
        {
            'memoryRecordId': 'string'
        },
    ]
)
Parameters:
  • memoryId (string) –

    [REQUIRED]

    The unique ID of the memory resource where records will be deleted.

  • records (list) –

    [REQUIRED]

    A list of memory record deletion inputs to be processed in the batch operation.

    • (dict) –

      Input structure to delete an existing memory record.

      • memoryRecordId (string) – [REQUIRED]

        The unique ID of the memory record to be deleted.

Return type:

dict

Returns:

Response Syntax

{
    'successfulRecords': [
        {
            'memoryRecordId': 'string',
            'status': 'SUCCEEDED'|'FAILED',
            'requestIdentifier': 'string',
            'errorCode': 123,
            'errorMessage': 'string'
        },
    ],
    'failedRecords': [
        {
            'memoryRecordId': 'string',
            'status': 'SUCCEEDED'|'FAILED',
            'requestIdentifier': 'string',
            'errorCode': 123,
            'errorMessage': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • successfulRecords (list) –

      A list of memory records that were successfully deleted during the batch operation.

      • (dict) –

        Output information returned after processing a memory record operation.

        • memoryRecordId (string) –

          The unique ID associated to the memory record.

        • status (string) –

          The status of the memory record operation (e.g., SUCCEEDED, FAILED).

        • requestIdentifier (string) –

          The client-provided identifier that was used to track this record operation.

        • errorCode (integer) –

          The error code returned when the memory record operation fails.

        • errorMessage (string) –

          A human-readable error message describing why the memory record operation failed.

    • failedRecords (list) –

      A list of memory records that failed to be deleted, including error details for each failure.

      • (dict) –

        Output information returned after processing a memory record operation.

        • memoryRecordId (string) –

          The unique ID associated to the memory record.

        • status (string) –

          The status of the memory record operation (e.g., SUCCEEDED, FAILED).

        • requestIdentifier (string) –

          The client-provided identifier that was used to track this record operation.

        • errorCode (integer) –

          The error code returned when the memory record operation fails.

        • errorMessage (string) –

          A human-readable error message describing why the memory record operation failed.

Exceptions

  • BedrockAgentCore.Client.exceptions.ServiceQuotaExceededException

  • BedrockAgentCore.Client.exceptions.ThrottledException

  • BedrockAgentCore.Client.exceptions.ServiceException

  • BedrockAgentCore.Client.exceptions.AccessDeniedException

  • BedrockAgentCore.Client.exceptions.ValidationException

  • BedrockAgentCore.Client.exceptions.ResourceNotFoundException