def dl_flush(dl):
    """ Flush double list. (Remove all items).
    """
    curr = dl.head
    while not curr:
        temp = curr
        curr = curr.next
        del temp
    dl.head = None
    dl.tail = None
    dl.itemsInContainer = 0
