## Delete Api Key

`client.APIKeys.Delete(ctx, apiKeyID) (*APIKeyDeleteResponse, error)`

**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

- `apiKeyID string`

### Returns

- `type APIKeyDeleteResponse struct{…}`

  Confirmation that a resource was deleted.

  - `CacheTtlSeconds int64`

    Maximum seconds until cached information expires

  - `Success bool`

    Whether the resource was deleted

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/run-llama/llamacloud-admin-go"
  "github.com/run-llama/llamacloud-admin-go/option"
)

func main() {
  client := llamacloudadmin.NewClient(
    option.WithAPIKey("My API Key"),
  )
  apiKey, err := client.APIKeys.Delete(context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", apiKey.CacheTtlSeconds)
}
```

#### Response

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