---
title: "CustomPartCollection.clear method"
url: "https://reference.aspose.com/words/nodejs-net/aspose.words.markup/custompartcollection/clear/"
product: "Aspose.Words for Node.js"
description: "CustomPartCollection.clear method. Removes all elements from the collection."
---


## clear() {#default}

Removes all elements from the collection.


```js
clear()
```

### See Also

* module [Aspose.Words.Markup](../../)
* class [CustomPartCollection](../)

