Registry.DeleteValue
--------------------

Deletes a value from a registry key.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Registry](component_Registry.md) | [7.2](newinversion72.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "Registry.DeleteValue"; Path; Name ) 

**MBS**( **"Registry.DeleteValue";** /\* Deletes a value from a registry key. \*/  
**$Path**; /\* The path to the parent registry key.  
Separated by \\ you specify the path to the key you want.  
Root can be Classes, CurrentUser, LocalMachine, Users, PerformanceData, CurrentConfig, DynData or the HKEY names.e.g. "Users\\test" \*/   
**$Name**) /\* The name of the value to delete.e.g. "Hello" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The path to the parent registry key.   Separated by \\ you specify the path to the key you want.   Root can be Classes, CurrentUser, LocalMachine, Users, PerformanceData, CurrentConfig, DynData or the HKEY names. | "Users\\test" |
| Name | The name of the value to delete. | "Hello" |

### Result

Returns OK or error.

### Description

Deletes a value from a registry key.  
### Examples

Delete a value:

 MBS ( "Registry.DeleteValue"; "CurrentUser\\Test"; "Hello" )  
### See also

- [Registry.DeleteKey](RegistryDeleteKey.md)
- [Registry.DeleteTree](RegistryDeleteTree.md)
- [Registry.GetValue](RegistryGetValue.md)
- [Registry.SetValue](RegistrySetValue.md)

### Blog Entries

- [Set initial file for FileMaker 19 by script](https://www.mbsplugins.de/archive/2020-06-17/Set_initial_file_for_FileMaker/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 20th March 2017 , last changed 20th March 2017

  
[Registry.DeleteTree](RegistryDeleteTree.md) - [Registry.FlushKey](RegistryFlushKey.md)

[HTML Version](RegistryDeleteValue.shtml)