List.Remove
-----------

Removes the value with the given index in the list.

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

MBS( "List.Remove"; List; Index ) 

**MBS**( **"List.Remove";** /\* Removes the value with the given index in the list. \*/  
**$List**; /\* The list to process.e.g. "Hello" ¶ "" ¶ "World" \*/   
**$Index**) /\* The index of the item to remove. Range from 0 to [QuickList.Count](QuickListCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| List | The list to process. | "Hello" ¶ "" ¶ "World" |
| Index | The index of the item to remove. Range from 0 to [QuickList.Count](QuickListCount.md)-1. | 0 |

### Result

Returns list or error.

### Description

Removes the value with the given index in the list.  
Returns a new list where the value is missing.  
For big lists, using QuickList functions is much faster. The list is only parsed once and stored in memory.  
### Examples

Remove an entry:

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

- [List.RemoveDuplicateItems](ListRemoveDuplicateItems.md)
- [List.RemoveEmptyItems](ListRemoveEmptyItems.md)
- [List.RemovePostfix](ListRemovePostfix.md)
- [List.RemoveValue](ListRemoveValue.md)
- [List.RemoveValues](ListRemoveValues.md)
- [QuickList.FindDuplicateItems](QuickListFindDuplicateItems.md)
- [QuickList.JoinJSON](QuickListJoinJSON.md)
- [QuickList.RemovePostfix](QuickListRemovePostfix.md)
- [QuickList.RemovePrefix](QuickListRemovePrefix.md)
- [SyntaxColoring.AddContextMenuCommand](SyntaxColoringAddContextMenuCommand.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 14.0**
    - Added CaseSensitive flag for [List.FindDuplicateItems](https://www.mbsplugins.eu/ListFindDuplicateItems.shtml), [List.HasDuplicateItems](https://www.mbsplugins.eu/ListHasDuplicateItems.shtml), [List.RemoveDuplicateItems](https://www.mbsplugins.eu/ListRemoveDuplicateItems.shtml), [QuickList.FindDuplicateItems](https://www.mbsplugins.eu/QuickListFindDuplicateItems.shtml), [QuickList.HasDuplicateItems](https://www.mbsplugins.eu/QuickListHasDuplicateItems.shtml), [QuickList.RemoveDuplicateItems](https://www.mbsplugins.eu/QuickListRemoveDuplicateItems.shtml).
- **Version 10.4**
    - Added RemoveAll and ReturnNewList parameters to [QuickList.RemoveDuplicateItems](https://www.mbsplugins.eu/QuickListRemoveDuplicateItems.shtml) function.
- **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).

This function checks for a license.

Created 11st March 2017 , last changed 18th December 2020

  
[List.RegExMatch](ListRegExMatch.md) - [List.RemoveDuplicateItems](ListRemoveDuplicateItems.md)

[HTML Version](ListRemove.shtml)