prototipo-1-rag / edgedb /depopulate_edgedb.py
Pecximenes's picture
Adding v1 of rag-agent
853a071
raw
history blame
385 Bytes
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.')