---
title: "LinkedResourceCollection.Clear"
url: "https://reference.aspose.com/email/net/aspose.email/linkedresourcecollection/clear/"
product: "Aspose.Email for .NET API Reference"
description: "LinkedResourceCollection method. Removes all resources from the collection optionally also removing the references to them from the HTML body"
---

## LinkedResourceCollection.Clear method

Removes all resources from the collection, optionally also removing the references to them from the HTML body.

```csharp
public void Clear(bool removeHtmlLinks)
```

| Parameter | Type | Description |
| --- | --- | --- |
| removeHtmlLinks | Boolean | `true` to also remove the `cid:` references to the resources from the HTML body. |

### See Also

* class [LinkedResourceCollection](../)
* namespace [Aspose.Email](../../linkedresourcecollection/)
* assembly [Aspose.Email](../../../)


