@Operation(summary = "Delete cached services")
    @DeleteMapping(path = "/cache",
        consumes = {
            MediaType.APPLICATION_FORM_URLENCODED_VALUE,
            MediaType.APPLICATION_JSON_VALUE,
            MEDIA_TYPE_SPRING_BOOT_V2_JSON,
            MEDIA_TYPE_SPRING_BOOT_V3_JSON,
            MEDIA_TYPE_CAS_YAML
        })
    public ResponseEntity deleteCache() {
        val size = configurationContext.getObject().getServicesCache().estimatedSize();
        configurationContext.getObject().getServicesCache().invalidateAll();
        return ResponseEntity.ok(Map.of("deleted", size));
    }
Delete registered service cache.

@return the response entity
support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/RegisteredServicesEndpoint.java