public Future<Boolean> invalidatePerRequestApiKey(ApiKeyData apiKeyData) {
        String apiKey = apiKeyData.getPerRequestKey();
        if (apiKey != null) {
            ResourceDescriptor resource = toResource(apiKey);
            return vertx.executeBlocking(() -> resourceService.deleteResource(resource, EtagHeader.ANY), false);
        }
        return Future.succeededFuture(true);
    }
Invalidates per request API key.
If api key belongs to a project the operation will not have affect.

@param apiKeyData associated with the key to be invalidated.
@return the future of the invalidation result: <code>true</code> means the key is successfully invalidated.
server/src/main/java/com/epam/aidial/core/server/security/ApiKeyStore.java