public static boolean isDelete(final WebContext context) {
        return HttpConstants.HTTP_METHOD.DELETE.name().equalsIgnoreCase(context.getRequestMethod());
    }
Whether it is a DELETE request.

@param context the web context
@return whether it is a DELETE request
pac4j-core/src/main/java/org/pac4j/core/context/WebContextHelper.java