Skip to content

Delete Agent

bedrockagent_delete_agent R Documentation

Deletes an agent

Description

Deletes an agent.

Usage

bedrockagent_delete_agent(agentId, skipResourceInUseCheck)

Arguments

agentId

[required] The unique identifier of the agent to delete.

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.

Value

A list with the following syntax:

list(
  agentId = "string",
  agentStatus = "CREATING"|"PREPARING"|"PREPARED"|"NOT_PREPARED"|"DELETING"|"FAILED"|"VERSIONING"|"UPDATING"
)

Request syntax

svc$delete_agent(
  agentId = "string",
  skipResourceInUseCheck = TRUE|FALSE
)