Delete a version of a guardrail
To learn how to delete a version of a guardrail, select one of the tabs below and follow the steps indicated:
- Console
-
If you no longer need a version, you can delete it with the following steps.
To delete a version
-
Sign in to the AWS Management Console using an IAM role with Amazon Bedrock permissions, and open the Amazon Bedrock console at https://console.aws.amazon.com/bedrock/
. -
Choose Guardrails from the left navigation pane. Then, select a guardrail in the Guardrails section.
-
In the Versions section, select the version you want to delete and choose Delete.
-
A modal appears to warn you about resources that are dependent on this version of the guardrail. Disassociate the version from the resources before you delete to avoid errors.
-
Enter
delete
in the user input field and choose Delete to delete the guardrail version.
-
- API
-
To delete a version of a guardrail, send a DeleteGuardrail request. Specify the ARN of the guardrail in the
guardrailIdentifier
field and the version in theguardrailVersion
field.The following is the request format:
DELETE /guardrails/
guardrailIdentifier
?guardrailVersion=guardrailVersion
HTTP/1.1If the deletion is successful, the response returns an HTTP 200 status code.