# 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/1d6c4b9fe34534bf1087dfe41491b72be0b46858/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.