Deletes an agent. To specify which agent to delete, use the Amazon Resource Name (ARN)
of the agent in your request. The operation disassociates the agent from your Amazon Web Services account.
However, it doesn't delete the agent virtual machine (VM) from your on-premises
environment.
example
Use a bare-bones client and the command you need to make an API call.
Deletes an agent. To specify which agent to delete, use the Amazon Resource Name (ARN) of the agent in your request. The operation disassociates the agent from your Amazon Web Services account. However, it doesn't delete the agent virtual machine (VM) from your on-premises environment.
Use a bare-bones client and the command you need to make an API call.
import { DataSyncClient, DeleteAgentCommand } from "@aws-sdk/client-datasync"; // ES Modules import // const { DataSyncClient, DeleteAgentCommand } = require("@aws-sdk/client-datasync"); // CommonJS import const client = new DataSyncClient(config); const command = new DeleteAgentCommand(input); const response = await client.send(command);
DeleteAgentCommandInput for command's
input
shape.DeleteAgentCommandOutput for command's
response
shape.config for DataSyncClient's
config
shape.