<div class="meta" robots="noindex">

</div>

Method

# JSONItem.Clear

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `JSONItem.RemoveAll<jsonitem.removeall>` as a replacement.

</div>

## Description

Deletes all children and resets the JSONItem type (object or array).

## Sample code

``` xojo
Var person As New JSONItem
.
.
person.Clear
```

## Compatibility

All project types on all supported operating systems.
