---
schema_version: "1"
id: 7418266c699dd0bf59b05362c221aadc1540fcbd2c95d7f350a4900411fa061a
title: removeAllItems()
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_modeler_listobject_remove_allitems.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_remove_allitems.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a69db3a2a6ce76ca57be7f2877d168913a968a48f9e0b64a7e827bc52eba3d7e
description: Removes all items from the list object.
products:
  - Consumer Goods
release: "264"
---
# removeAllItems()

Removes all items from the list object.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in <strong>Professional</strong>, <strong>Unlimited</strong>, and <strong>Enterprise</strong> Editions that have Consumer Goods Cloud enabled.</td></tr></tbody></table>

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-consumer_goods_retail_vscode_modeler-264-0-0-production-enus/87cab158-9245-45b0-9080-f17a57d69ec9/images/icon_example.png)

Example

```
this.removeAllItems();
```