'Removes the selected history
:param toRemove: Contains the properties of the log entries to remove'

def remove(self, toRemove):

    query = u''
    for item in toRemove:
        query = ((query + u'    OR    ') if (query != u'') else u'')
        query = (query + u'(date    IN    ({0})    AND    showid    =    {1}    AND    season    =    {2}    AND    episode    =    {3})'.format(u','.join(item[u'dates']), item[u'show_id'], item[u'season'], item[u'episode']))
    self.db.action((u'DELETE    FROM    history    WHERE    ' + query))
