Delete an agent
If you no longer need an agent, you can delete it at any time.
To learn how to delete an agent, choose the tab for your preferred method, and then follow the steps:
- Console
-
To delete an agent
-
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/
. -
Select Agents from the left navigation pane.
-
To delete an agent, choose the option button that's next to the agent you want to delete.
-
A dialog box appears warning you about the consequences of deletion. To confirm that you want to delete the agent, enter
delete
in the input field and then select Delete. -
When deletion is complete, a success banner appears.
-
- API
-
To delete an agent, send a DeleteAgent request with an Agents for Amazon Bedrock build-time endpoint and specify the
agentId
.By default, the
skipResourceInUseCheck
parameter isfalse
and deletion is stopped if the resource is in use. If you setskipResourceInUseCheck
totrue
, the resource will be deleted even if the resource is in use.