List.RemoveValue
----------------

Removes a value from a list.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [List](component_List.md) | [7.1](newinversion71.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "List.RemoveValue"; List; Value { ; All } ) 

**MBS**( **"List.RemoveValue";** /\* Removes a value from a list. \*/  
**$List**; /\* The list to process.e.g. "Hello" ¶ "" ¶ "World" \*/   
**$Value**; /\* The value to remove.e.g. "Hello" \*/   
**$All**) /\* Optional; Optional, pass 1 to remove all values with the given value. Pass 0 (default) to remove only the first matching value.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| List | The list to process. | "Hello" ¶ "" ¶ "World" |  |
| Value | The value to remove. | "Hello" |  |
| All | Optional, pass 1 to remove all values with the given value. Pass 0 (default) to remove only the first matching value. | 0 | Optional |

### Result

Returns list or error.

### Description

Removes a value from a list.  
### Examples

Remove one value:

 MBS ( "List.RemoveValue"; "Hello¶123¶World¶123¶abc"; "123")  
<small>  
Example result:   
Hello  
World  
123  
abc</small>Remove all values:

 MBS ( "List.RemoveValue"; "Hello¶123¶World¶123¶abc"; "123"; 1)  
<small>  
Example result:   
Hello  
World  
abc</small>### See also

- [List.Remove](ListRemove.md)
- [List.RemoveValues](ListRemoveValues.md)

### Release notes

- **Version 15.1**
    - Added [List.RemoveValues](https://www.mbsplugins.eu/ListRemoveValues.shtml) and [QuickList.RemoveValues](https://www.mbsplugins.eu/QuickListRemoveValues.shtml) functions.
- **Version 9.0**
    - Changed [List.RemoveValue](http://www.mbsplugins.eu/ListRemoveValue.shtml) and [QuickList.RemoveValue](http://www.mbsplugins.eu/QuickListRemoveValue.shtml) to not report error if value is not found.
- **Version 7.1**
    - Added [List.AddValue](http://www.mbsplugins.eu/ListAddValue.shtml), [List.GetValue](http://www.mbsplugins.eu/ListGetValue.shtml), [List.InsertValue](http://www.mbsplugins.eu/ListInsertValue.shtml), [List.Remove](http://www.mbsplugins.eu/ListRemove.shtml), [List.RemoveValue](http://www.mbsplugins.eu/ListRemoveValue.shtml) and [List.SetValue](http://www.mbsplugins.eu/ListSetValue.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 8.6pr3](https://www.mbsplugins.de/archive/2018-12-12/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st March 2017 , last changed 28th July 2019

  
[List.RemovePrefix](ListRemovePrefix.md) - [List.RemoveValues](ListRemoveValues.md)

[HTML Version](ListRemoveValue.shtml)