# deletePiece

> **deletePiece**(`client`, `options`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`ReturnType`](/reference/filoz/synapse-core/sp/namespaces/deletepiece/type-aliases/returntype/)\>

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

Delete a piece from a data set

Call the Service Provider API to delete the piece.

## Parameters

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

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`ReturnType`](/reference/filoz/synapse-core/sp/namespaces/deletepiece/type-aliases/returntype/)\>

The transaction hash of the delete operation.