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

</div>

Method

# Dictionary.Clear

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

<div class="warning">

<div class="title">

Warning

</div>

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

</div>

## Description

Clears all the *key-value* pairs in the **Dictionary**.

## Sample code

``` xojo
Dim d As New Dictionary
  .
  .
d.Clear
```

## Compatibility

All project types on all supported operating systems.
