## Delete Api Key

`ApiKeyDeleteResponse apiKeys().delete(ApiKeyDeleteParamsparams = ApiKeyDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())`

**delete** `/api/v1/beta/api-keys/{api_key_id}`

Revoke an API key.

Revoking a project key takes access away from everyone using it, so it needs
key-management permission on that project. Your own unscoped keys need only
that you own them. A project-scoped key revokes only within its own project,
unscoped keys included.

### Parameters

- `ApiKeyDeleteParams params`

  - `Optional<String> apiKeyId`

### Returns

- `class ApiKeyDeleteResponse:`

  Confirmation that a resource was deleted.

  - `long cacheTtlSeconds`

    Maximum seconds until cached information expires

  - `boolean success`

    Whether the resource was deleted

### Example

```java
package ai.llamaindex.llamacloudadmin.example;

import ai.llamaindex.llamacloudadmin.client.LlamaCloudAdminClient;
import ai.llamaindex.llamacloudadmin.client.okhttp.LlamaCloudAdminOkHttpClient;
import ai.llamaindex.llamacloudadmin.models.apikeys.ApiKeyDeleteParams;
import ai.llamaindex.llamacloudadmin.models.apikeys.ApiKeyDeleteResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudAdminClient client = LlamaCloudAdminOkHttpClient.fromEnv();

        ApiKeyDeleteResponse apiKey = client.apiKeys().delete("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e");
    }
}
```

#### Response

```json
{
  "cache_ttl_seconds": 0,
  "success": true
}
```
