giants-metadata/reset.py

16 lines
265 B
Python
Raw Permalink Normal View History

2024-10-24 12:51:23 +02:00
#!/usr/bin/python3
from shutil import rmtree
BASE_DIR = 'data'
confirmation = input('If you really want to delete all releases and channels, type CONFIRM: ')
if confirmation != 'CONFIRM':
print('Cancelled')
exit()
rmtree(BASE_DIR)
print('Reset complete')