GameLift.Client.delete_fleet(**kwargs)¶Deletes all resources and information related a fleet. Any current fleet instances, including those in remote locations, are shut down. You don't need to call DeleteFleetLocations separately.
Note
If the fleet being deleted has a VPC peering connection, you first need to get a valid authorization (good for 24 hours) by calling CreateVpcPeeringAuthorization. You do not need to explicitly delete the VPC peering connection.
To delete a fleet, specify the fleet ID to be terminated. During the deletion process the fleet status is changed to DELETING . When completed, the status switches to TERMINATED and the fleet event FLEET_DELETED is sent.
Learn more
See also: AWS API Documentation
Request Syntax
response = client.delete_fleet(
FleetId='string'
)
[REQUIRED]
A unique identifier for the fleet to be deleted. You can use either the fleet ID or ARN value.
Exceptions
GameLift.Client.exceptions.NotFoundExceptionGameLift.Client.exceptions.InternalServiceExceptionGameLift.Client.exceptions.InvalidFleetStatusExceptionGameLift.Client.exceptions.UnauthorizedExceptionGameLift.Client.exceptions.InvalidRequestExceptionGameLift.Client.exceptions.TaggingFailedException