public static void delete(HttpConsumer<HttpExchange> endpoint, MediaTypes... mediaTypes) {
        addResource(Methods.DELETE, HandlerUtil.BASE_PATH, endpoint, mediaTypes);
    }
public static void delete ( HttpConsumer < HttpExchange > endpoint , MediaTypes ... mediaTypes ) { addResource ( Methods . DELETE , HandlerUtil . BASE_PATH , endpoint , mediaTypes ) ; }
Define a REST endpoint mapped to HTTP DELETE with default path "/" as url

@param endpoint   The endpoint handler
@param mediaTypes (Optional) The accepted and returned types for this endpoint