Smaws_Client_DataSync.DeleteAgentRemoves an DataSync agent resource from your Amazon Web Services account.
Keep in mind that this operation (which can't be undone) doesn't remove the agent's virtual machine (VM) or Amazon EC2 instance from your storage environment. For next steps, you can delete the VM or instance from your storage environment or reuse it to activate a new agent.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalException of Types.internal_exception
| `InvalidRequestException of Types.invalid_request_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_agent_request ->
(Types.delete_agent_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalException of Types.internal_exception
| `InvalidRequestException of Types.invalid_request_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_agent_request ->
(Types.delete_agent_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalException of Types.internal_exception
| `InvalidRequestException of Types.invalid_request_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result