StorageGateway / Client / delete_gateway
delete_gateway#
- StorageGateway.Client.delete_gateway(**kwargs)#
Deletes a gateway. To specify which gateway to delete, use the Amazon Resource Name (ARN) of the gateway in your request. The operation deletes the gateway; however, it does not delete the gateway virtual machine (VM) from your host computer.
After you delete a gateway, you cannot reactivate it. Completed snapshots of the gateway volumes are not deleted upon deleting the gateway, however, pending snapshots will not complete. After you delete a gateway, your next step is to remove it from your environment.
Warning
You no longer pay software charges after the gateway is deleted; however, your existing Amazon EBS snapshots persist and you will continue to be billed for these snapshots. You can choose to remove all remaining Amazon EBS snapshots by canceling your Amazon EC2 subscription. If you prefer not to cancel your Amazon EC2 subscription, you can delete your snapshots using the Amazon EC2 console. For more information, see the Storage Gateway detail page.
See also: AWS API Documentation
Request Syntax
response = client.delete_gateway( GatewayARN='string' )
- Parameters:
GatewayARN (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.
- Return type:
dict
- Returns:
Response Syntax
{ 'GatewayARN': 'string' }
Response Structure
(dict) –
A JSON object containing the ID of the deleted gateway.
GatewayARN (string) –
The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.
Exceptions
StorageGateway.Client.exceptions.InvalidGatewayRequestException
StorageGateway.Client.exceptions.InternalServerError
Examples
This operation deletes the gateway, but not the gateway’s VM from the host computer.
response = client.delete_gateway( GatewayARN='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B', ) print(response)
Expected Output:
{ 'GatewayARN': 'arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B', 'ResponseMetadata': { '...': '...', }, }