# waitForDeletePieceStatus

> **waitForDeletePieceStatus**(`client`, `options`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`TransactionReceipt`\>

Defined in: [packages/synapse-core/src/warm-storage/pieces.ts:105](https://github.com/FilOzone/synapse-sdk/blob/32f86959b0bf15557657ea412e31a0897440ca98/packages/synapse-core/src/warm-storage/pieces.ts#L105)

Wait for the delete piece status.

Waits for the transaction to be mined and then polls for the transaction receipt.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `client` | `Client`\<`Transport`, `Chain`\> | The client to use to wait for the delete piece status. |
| `options` | [`WaitForDeletePieceStatusOptions`](/reference/filoz/synapse-core/warm-storage/type-aliases/waitfordeletepiecestatusoptions/) | The options for the wait for the delete piece status. |

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`TransactionReceipt`\>