EnvironmentVariables.ClearValue
-------------------------------

Clears a variable by removing it from the environment.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [EnvironmentVariables](component_EnvironmentVariables.md) | [5.1](newinversion51.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "EnvironmentVariables.ClearValue"; Name ) 

**MBS**( **"EnvironmentVariables.ClearValue";** /\* Clears a variable by removing it from the environment. \*/  
**$Name**) /\* The name of the environment variable.e.g. "test" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The name of the environment variable. | "test" |

### Result

Returns OK or error.

### Description

Clears a variable by removing it from the environment.  
Only visible within FileMaker application and subprocesses launched after the change.  
### Examples

Clear a variable:

 MBS ( "EnvironmentVariables.ClearValue"; "test")  
### See also

- [EnvironmentVariables.SetValue](EnvironmentVariablesSetValue.md)
- [EnvironmentVariables.Value](EnvironmentVariablesValue.md)

### Example Databases

- [Utility functions/Environment Variables](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/Environment%20Variables.shtml#1GroupButton18.0000000642.000000043.0000000733.0000000LayoutObjectAnchor_)

This function is free to use.

Created 8th April 2015 , last changed 8th April 2015

  
[Encryption.PubKeyEncrypt](EncryptionPubKeyEncrypt.md) - [EnvironmentVariables.Count](EnvironmentVariablesCount.md)

[HTML Version](EnvironmentVariablesClearValue.shtml)