'Deletes the records in the current QuerySet.'

def delete(self):

    assert self.query.can_filter(), "Cannot    use    'limit'    or    'offset'    with    delete."
    del_query = self._clone()
    del_query._for_write = True
    del_query.query.select_related = False
    del_query.query.clear_ordering()
    seen_objs = None
    del_itr = iter(del_query)
    while 1:
        seen_objs = CollectedObjects(seen_objs)
        for (i, obj) in izip(xrange(CHUNK_SIZE), del_itr):
            obj._collect_sub_objects(seen_objs)
        if (not seen_objs):
            break
        delete_objects(seen_objs, del_query.db)
    self._result_cache = None
