:doc:`BedrockAgentCoreControl <../../bedrock-agentcore-control>` / Client / delete_memory

*************
delete_memory
*************



.. py:method:: BedrockAgentCoreControl.Client.delete_memory(**kwargs)

  

  Deletes an Amazon Bedrock AgentCore Memory resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-control-2023-06-05/DeleteMemory>`_  


  **Request Syntax**
  ::

    response = client.delete_memory(
        clientToken='string',
        memoryId='string'
    )
    
  :type clientToken: string
  :param clientToken: 

    A client token is used for keeping track of idempotent requests. It can contain a session id which can be around 250 chars, combined with a unique AWS identifier.

    This field is autopopulated if not provided.

  
  :type memoryId: string
  :param memoryId: **[REQUIRED]** 

    The unique identifier of the memory to delete.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'memoryId': 'string',
          'status': 'CREATING'|'ACTIVE'|'FAILED'|'DELETING'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **memoryId** *(string) --* 

        The unique identifier of the deleted AgentCore Memory resource.

        
      

      - **status** *(string) --* 

        The current status of the AgentCore Memory resource deletion.

        
  
  **Exceptions**
  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ServiceException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ValidationException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ConflictException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ThrottledException`

  