Delete an agent - Amazon Bedrock

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
  1. 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/.

  2. Select Agents from the left navigation pane.

  3. To delete an agent, choose the option button that's next to the agent you want to delete.

  4. 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.

  5. 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 is false and deletion is stopped if the resource is in use. If you set skipResourceInUseCheck to true, the resource will be deleted even if the resource is in use.

See code examples