# DeleteKey

[**promise**](https://limechain.gitbook.io/limechain-test/promise) • **Docs**

***

[near-sdk-js v2.0.0](https://limechain.gitbook.io/limechain-test/packages) / [promise](https://limechain.gitbook.io/limechain-test/promise) / DeleteKey

## Class: DeleteKey

A delete key promise action.

### Extends

* [`PromiseAction`](https://limechain.gitbook.io/limechain-test/promise/classes/promiseaction)

### Constructors

#### new DeleteKey()

> **new DeleteKey**(`publicKey`): [`DeleteKey`](https://limechain.gitbook.io/limechain-test/promise/classes/deletekey)

**Parameters**

• **publicKey**: [`PublicKey`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/publickey)

The public key to delete from the account.

**Returns**

[`DeleteKey`](https://limechain.gitbook.io/limechain-test/promise/classes/deletekey)

**Overrides**

[`PromiseAction`](https://limechain.gitbook.io/limechain-test/promise/classes/promiseaction).[`constructor`](https://limechain.gitbook.io/limechain-test/promise/promiseaction#constructors)

**Defined in**

[packages/near-sdk-js/src/promise.ts:289](https://github.com/dim-daskalov/near-sdk-js/blob/c95f5e9eab115df82feb9d8dca403e7b9c8c9534/packages/near-sdk-js/src/promise.ts#L289)

### Properties

#### publicKey

> **publicKey**: [`PublicKey`](https://limechain.gitbook.io/limechain-test/types/public_key/classes/publickey)

The public key to delete from the account.

**Defined in**

[packages/near-sdk-js/src/promise.ts:289](https://github.com/dim-daskalov/near-sdk-js/blob/c95f5e9eab115df82feb9d8dca403e7b9c8c9534/packages/near-sdk-js/src/promise.ts#L289)

### Methods

#### add()

> **add**(`promiseIndex`): `void`

The method that describes how a promise action adds it's *action* to the promise batch with the provided index.

**Parameters**

• **promiseIndex**: [`PromiseIndex`](https://limechain.gitbook.io/limechain-test/utils/type-aliases/promiseindex)

The index of the promise batch to attach the action to.

**Returns**

`void`

**Overrides**

[`PromiseAction`](https://limechain.gitbook.io/limechain-test/promise/classes/promiseaction).[`add`](https://limechain.gitbook.io/limechain-test/promise/promiseaction#add)

**Defined in**

[packages/near-sdk-js/src/promise.ts:293](https://github.com/dim-daskalov/near-sdk-js/blob/c95f5e9eab115df82feb9d8dca403e7b9c8c9534/packages/near-sdk-js/src/promise.ts#L293)
