realweather-metadata/reset.py

16 lines
303 B
Python
Raw Normal View History

2024-06-15 13:02:01 +02:00
#!/usr/bin/python3
from shutil import rmtree
from os import remove, mkdir
confirmation = input('If you really want to delete all releases, type CONFIRM: ')
if confirmation != 'CONFIRM':
print('Cancelled')
exit()
remove('latest.json')
rmtree('releases')
mkdir('releases')
print('Reset complete')