Spaces:
Sleeping
Sleeping
File size: 385 Bytes
853a071 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import edgedb
from dotenv import load_dotenv
load_dotenv()
client = edgedb.create_client()
resp = input('Are you sure you want to depopulate the database? (y/n) ')
if resp.lower() == 'y':
client.query('''
DELETE Website;
DELETE Image;
DELETE Video;
DELETE Text;
''')
print('Database depopulated.')
else:
print('Operation canceled.')
|