> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/developer-tools/global-indexer/indexer-apis/removes-a-file-from-ipfs-by-cid.md).

# Removes a file from IPFS by CID

Removes a file from IPFS by CID

<mark style="color:red;">`DELETE`</mark> `/ipfs/file/{cid}`

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

| Name | Type   | Description |
| ---- | ------ | ----------- |
| cid  | string | CID         |

**Response**

{% tabs %}
{% tab title="401" %}

```json5
description: Unauthorized.
```

{% endtab %}

{% tab title="403" %}

```json5
description: Forbidden.
```

{% endtab %}
{% endtabs %}
