'Remove the matching tracks from the tracklist.
Uses :meth:`filter()` to lookup the tracks to remove.
Triggers the :meth:`mopidy.core.CoreListener.tracklist_changed` event.
:param criteria: on or more criteria to match by
:type criteria: dict
:rtype: list of :class:`mopidy.models.TlTrack` that was removed
.. deprecated:: 1.1
Providing the criteria  via ``kwargs``.'

def remove(self, criteria=None, **kwargs):

    if kwargs:
        deprecation.warn(u'core.tracklist.remove:kwargs_criteria')
    tl_tracks = self.filter((criteria or kwargs))
    for tl_track in tl_tracks:
        position = self._tl_tracks.index(tl_track)
        del self._tl_tracks[position]
    self._increase_version()
    return tl_tracks
