# 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/5b0d94cdb43d49b460a669d64636e274a8d683fb/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/)\>