'removes all occurances of the header from the collection provided'

def delete(self, collection):

    if (type(collection) == dict):
        if (self._environ_name in collection):
            del collection[self._environ_name]
        return self
    assert (list == type(collection))
    i = 0
    while (i < len(collection)):
        if (collection[i][0].lower() == self._headers_name):
            del collection[i]
            continue
        i += 1
