> For the complete documentation index, see [llms.txt](https://shiply-integration-apis.gitbook.io/shiply-integration-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shiply-integration-apis.gitbook.io/shiply-integration-documentation/integration-apis/parcel-content/delete-parcel-content.md).

# Delete Parcel Content

```php
DELETE /parcel-content/delete/{id}
```

This API is used to remove content from a parcel.

{% hint style="info" %}
**Note:** Replace <mark style="color:blue;">{id}</mark> with the id of the parcel content you wish to delete.
{% endhint %}

#### Headers

<table><thead><tr><th width="374">Key</th><th>Value</th></tr></thead><tbody><tr><td>Accept</td><td>application/json</td></tr></tbody></table>

#### Request body

{% code lineNumbers="true" %}

```json
{
    "Shiply_API_KEY": "your_api_key"
}
```

{% endcode %}

#### Response body

{% tabs %}
{% tab title="Success" %}
Status code: <mark style="color:green;">204 no content</mark>
{% endtab %}

{% tab title="Parcel content not found" %}
Status code: <mark style="color:red;">404 not found</mark>

{% code lineNumbers="true" %}

```json
{
    "success": false,
    "error": "parcel content not found"
}
```

{% endcode %}

This response is returned when the <mark style="color:blue;">{id}</mark> provided in the route not belongs to a created parcel content.
{% endtab %}

{% tab title="Cannot delete content" %}
Status code: <mark style="color:red;">403 unauthorized</mark>

{% code lineNumbers="true" %}

```json
{
    "success": false,
    "error": "you cannot delete content for non draft or submitted parcel"
}
```

{% endcode %}

This response is returned when the <mark style="color:blue;">{id}</mark> provided in the route corresponds to a parcel content, and the associated parcel is neither in draft nor submitted status.
{% endtab %}

{% tab title="Unauthorized" %}
Status code: <mark style="color:green;">200 OK</mark>

{% code lineNumbers="true" %}

```json
{
    "success": false,
    "errors": [
        "unauthorized"
    ]
}
```

{% endcode %}

This response is returned when the <mark style="color:blue;">Shiply\_API\_KEY</mark> is not included in the request body.
{% endtab %}
{% endtabs %}
