:doc:`AgentsforBedrock <../../bedrock-agent>` / Client / delete_agent

************
delete_agent
************



.. py:method:: AgentsforBedrock.Client.delete_agent(**kwargs)

  

  Deletes an agent.

  

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


  **Request Syntax**
  ::

    response = client.delete_agent(
        agentId='string',
        skipResourceInUseCheck=True|False
    )
    
  :type agentId: string
  :param agentId: **[REQUIRED]** 

    The unique identifier of the agent to delete.

    

  
  :type skipResourceInUseCheck: boolean
  :param skipResourceInUseCheck: 

    By default, this value is ``false`` and deletion is stopped if the resource is in use. If you set it to ``true``, the resource will be deleted even if the resource is in use.

    

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

    
    ::

      {
          'agentId': 'string',
          'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **agentId** *(string) --* 

        The unique identifier of the agent that was deleted.

        
      

      - **agentStatus** *(string) --* 

        The status of the agent.

        
  
  **Exceptions**
  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ThrottlingException`

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

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

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.InternalServerException`

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

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

  