public static HttpURLConnection openDeleteConnection(final URL url) throws IOException {
        return openConnection(url, HttpConstants.HTTP_METHOD.DELETE.name(), null);
    }
<p>openDeleteConnection.</p>

@param url a {@link URL} object
@return a {@link HttpURLConnection} object
@throws IOException if any.
pac4j-core/src/main/java/org/pac4j/core/util/HttpUtils.java