> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/global-indexer/apis-related-to-indexer/removes-a-file-from-ipfs-by-cid.md).

# Removes a file from IPFS by CID

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

Removes a file from IPFS by 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 %}
