# deletePiece

```ts
function deletePiece(client, options): Promise<DeletePieceResponse>;
```

Defined in: [packages/synapse-core/src/warm-storage/pieces.ts:69](https://github.com/FilOzone/synapse-sdk/blob/b006a8f0508ba111d0736f9a555fdb401c18990b/packages/synapse-core/src/warm-storage/pieces.ts#L69)

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)\<[`DeletePieceResponse`](/reference/filoz/synapse-core/sp/type-aliases/deletepieceresponse/)\>

The transaction hash of the delete operation.