@Override
    public DeletePackageResult deletePackage(DeletePackageRequest request) {
        request = beforeClientExecution(request);
        return executeDeletePackage(request);
    }
<p>
Deletes an Amazon OpenSearch Service package. For more information, see <a
href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/custom-packages.html">Custom packages
for Amazon OpenSearch Service</a>.
</p>

@param deletePackageRequest
       Deletes a package from OpenSearch Service. The package can't be associated with any OpenSearch Service
       domain.
@return Result of the DeletePackage operation returned by the service.
@throws BaseException
        An error occurred while processing the request.
@throws InternalException
        Request processing failed because of an unknown error, exception, or internal failure.
@throws ResourceNotFoundException
        An exception for accessing or deleting a resource that doesn't exist.
@throws AccessDeniedException
        An error occurred because you don't have permissions to access the resource.
@throws ValidationException
        An exception for accessing or deleting a resource that doesn't exist.
@throws ConflictException
        An error occurred because the client attempts to remove a resource that is currently in use.
@sample AmazonOpenSearch.DeletePackage
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/AmazonOpenSearchClient.java