def delete_all_models(model_class):
    while model_class.objects.count():
        ids = model_class.objects.values_list('pk', flat=True)[:80]
        model_class.objects.filter(pk__in=ids).delete()
Read at most `size` bytes from the file (less if there
dataset/ETHPy150Open django-silk/silk/project/tests/util.py/delete_all_models--crossover with--dataset/ETHPy150Open twisted/txmongo/txmongo/_gridfs/grid_file.py/GridOut.read