@SdkInternalApi
    final DeleteApplicationReferenceDataSourceResult executeDeleteApplicationReferenceDataSource(
            DeleteApplicationReferenceDataSourceRequest deleteApplicationReferenceDataSourceRequest) {

        ExecutionContext executionContext = createExecutionContext(deleteApplicationReferenceDataSourceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DeleteApplicationReferenceDataSourceRequest> request = null;
        Response<DeleteApplicationReferenceDataSourceResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new DeleteApplicationReferenceDataSourceRequestProtocolMarshaller(protocolFactory).marshall(super
                        .beforeMarshalling(deleteApplicationReferenceDataSourceRequest));
                // 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, "Kinesis Analytics");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteApplicationReferenceDataSource");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            HttpResponseHandler<AmazonWebServiceResponse<DeleteApplicationReferenceDataSourceResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
                    new DeleteApplicationReferenceDataSourceResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<note>
<p>
This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL
applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see
<a href="/kinesisanalytics/latest/apiv2/Welcome.html">Amazon Kinesis Data Analytics API V2 Documentation</a>.
</p>
</note>
<p>
Deletes a reference data source configuration from the specified application configuration.
</p>
<p>
If the application is running, Amazon Kinesis Analytics immediately removes the in-application table that you
created using the <a
href="https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_AddApplicationReferenceDataSource.html"
>AddApplicationReferenceDataSource</a> operation.
</p>
<p>
This operation requires permissions to perform the
<code>kinesisanalytics.DeleteApplicationReferenceDataSource</code> action.
</p>

@param deleteApplicationReferenceDataSourceRequest
@return Result of the DeleteApplicationReferenceDataSource operation returned by the service.
@throws ResourceNotFoundException
        Specified application can't be found.
@throws ResourceInUseException
        Application is not available for this operation.
@throws InvalidArgumentException
        Specified input parameter value is invalid.
@throws ConcurrentModificationException
        Exception thrown as a result of concurrent modification to an application. For example, two individuals
        attempting to edit the same application at the same time.
@throws UnsupportedOperationException
        The request was rejected because a specified parameter is not supported or a specified resource is not
        valid for this operation.
@sample AmazonKinesisAnalytics.DeleteApplicationReferenceDataSource
@see <a
     href="http://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationReferenceDataSource"
     target="_top">AWS API Documentation</a>
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisanalytics/AmazonKinesisAnalyticsClient.java