# deletePiece

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

Defined in: [packages/synapse-core/src/sp/schedule-piece-deletion.ts:183](https://github.com/FilOzone/synapse-sdk/blob/f083d5ae48c935a03236ee2295ae86dcb5ade272/packages/synapse-core/src/sp/schedule-piece-deletion.ts#L183)

Delete one piece from a data set on the PDP API.

:::caution[Deprecated]
  Use [deletePieces](/reference/filoz/synapse-core/sp/functions/deletepieces/) instead.
  :::

## Parameters

| Parameter | Type |
| ------ | ------ |
| `options` | [`OptionsType`](/reference/filoz/synapse-core/sp/namespaces/deletepiece/type-aliases/optionstype/) |

## Returns

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