# Function: revokeKey()

```ts
function revokeKey(keyDid, accountDid): Promise<string>;
```

Defined in: [packages/core/src/space/space-access.ts:97](https://github.com/leifriksheim/minca/blob/main/core/src/space/space-access.ts#L97)

The key of an account's record revoking one of its keys: naming both, so no one else's can take its place

## Parameters

| Parameter | Type |
| ------ | ------ |
| `keyDid` | `string` |
| `accountDid` | `string` |

## Returns

`Promise`\<`string`\>
