:doc:`Bedrock <../../bedrock>` / Client / delete_guardrail

****************
delete_guardrail
****************



.. py:method:: Bedrock.Client.delete_guardrail(**kwargs)

  

  Deletes a guardrail.

   

  
  * To delete a guardrail, only specify the ARN of the guardrail in the ``guardrailIdentifier`` field. If you delete a guardrail, all of its versions will be deleted.
   
  * To delete a version of a guardrail, specify the ARN of the guardrail in the ``guardrailIdentifier`` field and the version in the ``guardrailVersion`` field.
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteGuardrail>`_  


  **Request Syntax**
  ::

    response = client.delete_guardrail(
        guardrailIdentifier='string',
        guardrailVersion='string'
    )
    
  :type guardrailIdentifier: string
  :param guardrailIdentifier: **[REQUIRED]** 

    The unique identifier of the guardrail. This can be an ID or the ARN.

    

  
  :type guardrailVersion: string
  :param guardrailVersion: 

    The version of the guardrail.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Bedrock.Client.exceptions.ResourceNotFoundException`

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

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

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

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

  
  *   :py:class:`Bedrock.Client.exceptions.ThrottlingException`

  