@SdkInternalApi
    final DeleteFleetsResult executeDeleteFleets(DeleteFleetsRequest deleteFleetsRequest) {

        ExecutionContext executionContext = createExecutionContext(deleteFleetsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DeleteFleetsRequest> request = null;
        Response<DeleteFleetsResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new DeleteFleetsRequestMarshaller().marshall(super.beforeMarshalling(deleteFleetsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteFleets");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            StaxResponseHandler<DeleteFleetsResult> responseHandler = new StaxResponseHandler<DeleteFleetsResult>(new DeleteFleetsResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Deletes the specified EC2 Fleets.
</p>
<p>
After you delete an EC2 Fleet, it launches no new instances.
</p>
<p>
You must also specify whether a deleted EC2 Fleet should terminate its instances. If you choose to terminate the
instances, the EC2 Fleet enters the <code>deleted_terminating</code> state. Otherwise, the EC2 Fleet enters the
<code>deleted_running</code> state, and the instances continue to run until they are interrupted or you terminate
them manually.
</p>
<p>
For <code>instant</code> fleets, EC2 Fleet must terminate the instances when the fleet is deleted. Up to 1000
instances can be terminated in a single request to delete <code>instant</code> fleets. A deleted
<code>instant</code> fleet with running instances is not supported.
</p>
<p class="title">
<b>Restrictions</b>
</p>
<ul>
<li>
<p>
You can delete up to 25 fleets of type <code>instant</code> in a single request.
</p>
</li>
<li>
<p>
You can delete up to 100 fleets of type <code>maintain</code> or <code>request</code> in a single request.
</p>
</li>
<li>
<p>
You can delete up to 125 fleets in a single request, provided you do not exceed the quota for each fleet type, as
specified above.
</p>
</li>
<li>
<p>
If you exceed the specified number of fleets to delete, no fleets are deleted.
</p>
</li>
</ul>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#delete-fleet">Delete an EC2
Fleet</a> in the <i>Amazon EC2 User Guide</i>.
</p>

@param deleteFleetsRequest
@return Result of the DeleteFleets operation returned by the service.
@sample AmazonEC2.DeleteFleets
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFleets" target="_top">AWS API
     Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java