Dictionary.Clear
----------------

Clears the dictionary content.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Dictionary](component_Dictionary.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Dictionary.Clear"; DictionaryRef ) 

**MBS**( **"Dictionary.Clear";** /\* Clears the dictionary content. \*/  
**$DictionaryRef**) /\* The reference number to the dictionary.e.g. $dic \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| DictionaryRef | The reference number to the dictionary. | $dic |

### Result

Returns OK or error.

### Description

Clears the dictionary content.  
Removes all keys and values.  
### See also

- [Dictionary.Clone](DictionaryClone.md)
- [Dictionary.Count](DictionaryCount.md)
- [Dictionary.Create](DictionaryCreate.md)
- [Dictionary.Keys](DictionaryKeys.md)
- [Dictionary.Release](DictionaryRelease.md)

This function is free to use.

Created 12nd December 2014 , last changed 23th April 2023

  
[Dictionary.AddSQLRecords](DictionaryAddSQLRecords.md) - [Dictionary.Clone](DictionaryClone.md)

[HTML Version](DictionaryClear.shtml)