> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# DeleteChatAction

> Protobuf class DeleteChatAction generated from WAProto.

Defined in: [WAProto/index.d.ts:11914](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11914)

## Implements

* [`IDeleteChatAction`](/proto-reference/SyncActionValue/interfaces/IDeleteChatAction)

## Constructors

### new DeleteChatAction()

> **new DeleteChatAction**(`p`?): [`DeleteChatAction`](/proto-reference/SyncActionValue/classes/DeleteChatAction)

Defined in: [WAProto/index.d.ts:11915](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11915)

#### Parameters

##### p?

[`IDeleteChatAction`](/proto-reference/SyncActionValue/interfaces/IDeleteChatAction)

#### Returns

[`DeleteChatAction`](/proto-reference/SyncActionValue/classes/DeleteChatAction)

## Properties

### messageRange?

> `optional` **messageRange**: `null` | [`ISyncActionMessageRange`](/proto-reference/SyncActionValue/interfaces/ISyncActionMessageRange)

Defined in: [WAProto/index.d.ts:11916](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11916)

#### Implementation of

[`IDeleteChatAction`](/proto-reference/SyncActionValue/interfaces/IDeleteChatAction).[`messageRange`](/proto-reference/SyncActionValue/interfaces/IDeleteChatAction#messagerange)

## Methods

### create()

> `static` **create**(`properties`?): [`DeleteChatAction`](/proto-reference/SyncActionValue/classes/DeleteChatAction)

Defined in: [WAProto/index.d.ts:11917](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11917)

#### Parameters

##### properties?

[`IDeleteChatAction`](/proto-reference/SyncActionValue/interfaces/IDeleteChatAction)

#### Returns

[`DeleteChatAction`](/proto-reference/SyncActionValue/classes/DeleteChatAction)

***

### decode()

> `static` **decode**(`r`, `l`?): [`DeleteChatAction`](/proto-reference/SyncActionValue/classes/DeleteChatAction)

Defined in: [WAProto/index.d.ts:11919](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11919)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`DeleteChatAction`](/proto-reference/SyncActionValue/classes/DeleteChatAction)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:11918](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11918)

#### Parameters

##### m

[`IDeleteChatAction`](/proto-reference/SyncActionValue/interfaces/IDeleteChatAction)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`DeleteChatAction`](/proto-reference/SyncActionValue/classes/DeleteChatAction)

Defined in: [WAProto/index.d.ts:11920](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11920)

#### Parameters

##### d

#### Returns

[`DeleteChatAction`](/proto-reference/SyncActionValue/classes/DeleteChatAction)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:11923](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11923)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:11922](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11922)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:11921](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L11921)

#### Parameters

##### m

[`DeleteChatAction`](/proto-reference/SyncActionValue/classes/DeleteChatAction)

##### o?

`IConversionOptions`

#### Returns

`object`
