# dask.bag.Bag.remove

#### Bag.remove(predicate)

Remove elements in collection that match predicate.

```pycon
>>> def iseven(x):
...     return x % 2 == 0
```

```pycon
>>> import dask.bag as db
>>> b = db.from_sequence(range(5))
>>> list(b.remove(iseven))
[1, 3]
```

<!-- !! processed by numpydoc !! -->
