Remove All

The Remove All Deluge list syntax removes from this list all the elements that are contained in the specified list.

Syntax

<list1>.removeAll(<list2>);

where,

<list1> - target list name from where the elements will be removed
<list2> - list that defines which elements will be removed from list1

Example

In the following sample code, sport_list is the list name from where the elements available in sport_list_old will be removed. For example, if sport_list contains elements Cricket, Hockey, Football, Soccer and sport_list_old contains elements named Hockey and Soccer, these two elements will be removed from sport_list.

<sport_list>.removeAll(<sport_list_old>);