xref: /DragonOS/tools/batch_delete_loop.py (revision 2813126e3190c9b3c1a836a647b259a7adbe0cf3)
1import os
2
3start = int(input("Start from: "))
4end = int(input("End at: "))
5
6for i in range(start, end+1):
7    print("Deleting: " + str(i))
8    os.system("sudo losetup -d /dev/loop" + str(i))
9print("Done!")