Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)

DeleteFleets

Deletes the specified EC2 Fleet.

After you delete an EC2 Fleet, it launches no new instances. You must specify whether an EC2 Fleet should also terminate its instances. If you terminate the instances, the EC2 Fleet enters the deleted_terminating state. Otherwise, the EC2 Fleet enters the deleted_running state, and the instances continue to run until they are interrupted or you terminate them manually.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No

FleetId.N

The IDs of the EC2 Fleets.

Type: Array of strings

Required: Yes

TerminateInstances

Indicates whether to terminate instances for an EC2 Fleet if it is deleted successfully.

Type: Boolean

Required: Yes

Response Elements

The following elements are returned by the service.

requestId

The ID of the request.

Type: String

successfulFleetDeletionSet

Information about the EC2 Fleets that are successfully deleted.

Type: Array of DeleteFleetSuccessItem objects

unsuccessfulFleetDeletionSet

Information about the EC2 Fleets that are not successfully deleted.

Type: Array of DeleteFleetErrorItem objects

Errors

For information about the errors that are common to all actions, see Common Client Errors.

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: