@SdkInternalApi
    final DeleteAnalysisSchemeResult executeDeleteAnalysisScheme(DeleteAnalysisSchemeRequest deleteAnalysisSchemeRequest) {

        ExecutionContext executionContext = createExecutionContext(deleteAnalysisSchemeRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DeleteAnalysisSchemeRequest> request = null;
        Response<DeleteAnalysisSchemeResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new DeleteAnalysisSchemeRequestMarshaller().marshall(super.beforeMarshalling(deleteAnalysisSchemeRequest));
                // 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, "CloudSearch");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAnalysisScheme");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            StaxResponseHandler<DeleteAnalysisSchemeResult> responseHandler = new StaxResponseHandler<DeleteAnalysisSchemeResult>(
                    new DeleteAnalysisSchemeResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Deletes an analysis scheme. For more information, see <a
href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html"
target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer Guide</i>.
</p>

@param deleteAnalysisSchemeRequest
       Container for the parameters to the <code><a>DeleteAnalysisScheme</a></code> operation. Specifies the name
       of the domain you want to update and the analysis scheme you want to delete.
@return Result of the DeleteAnalysisScheme operation returned by the service.
@throws BaseException
        An error occurred while processing the request.
@throws InternalException
        An internal error occurred while processing the request. If this problem persists, report an issue from
        the <a href="http://status.aws.amazon.com/" target="_blank">Service Health Dashboard</a>.
@throws InvalidTypeException
        The request was rejected because it specified an invalid type definition.
@throws ResourceNotFoundException
        The request was rejected because it attempted to reference a resource that does not exist.
@throws ValidationException
        The request was rejected because it has invalid parameters.
@sample AmazonCloudSearch.DeleteAnalysisScheme
aws-java-sdk-cloudsearch/src/main/java/com/amazonaws/services/cloudsearchv2/AmazonCloudSearchClient.java