@SdkInternalApi
    final DeleteCustomDBEngineVersionResult executeDeleteCustomDBEngineVersion(DeleteCustomDBEngineVersionRequest deleteCustomDBEngineVersionRequest) {

        ExecutionContext executionContext = createExecutionContext(deleteCustomDBEngineVersionRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DeleteCustomDBEngineVersionRequest> request = null;
        Response<DeleteCustomDBEngineVersionResult> response = null;

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

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

            StaxResponseHandler<DeleteCustomDBEngineVersionResult> responseHandler = new StaxResponseHandler<DeleteCustomDBEngineVersionResult>(
                    new DeleteCustomDBEngineVersionResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Deletes a custom engine version. To run this command, make sure you meet the following prerequisites:
</p>
<ul>
<li>
<p>
The CEV must not be the default for RDS Custom. If it is, change the default before running this command.
</p>
</li>
<li>
<p>
The CEV must not be associated with an RDS Custom DB instance, RDS Custom instance snapshot, or automated backup
of your RDS Custom instance.
</p>
</li>
</ul>
<p>
Typically, deletion takes a few minutes.
</p>
<note>
<p>
The MediaImport service that imports files from Amazon S3 to create CEVs isn't integrated with Amazon Web
Services CloudTrail. If you turn on data logging for Amazon RDS in CloudTrail, calls to the
<code>DeleteCustomDbEngineVersion</code> event aren't logged. However, you might see calls from the API gateway
that accesses your Amazon S3 bucket. These calls originate from the MediaImport service for the
<code>DeleteCustomDbEngineVersion</code> event.
</p>
</note>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html#custom-cev.delete">Deleting a
CEV</a> in the <i>Amazon RDS User Guide</i>.
</p>

@param deleteCustomDBEngineVersionRequest
@return Result of the DeleteCustomDBEngineVersion operation returned by the service.
@throws CustomDBEngineVersionNotFoundException
        The specified CEV was not found.
@throws InvalidCustomDBEngineVersionStateException
        You can't delete the CEV.
@sample AmazonRDS.DeleteCustomDBEngineVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteCustomDBEngineVersion"
     target="_top">AWS API Documentation</a>
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/AmazonRDSClient.java