Files
letta-server/tests/clear_postgres_db.py
Kian Jones b8e9a80d93 merge this (#4759)
* wait I forgot to comit locally

* cp the entire core directory and then rm the .git subdir
2025-09-17 15:47:40 -07:00

20 lines
348 B
Python

import os
from sqlalchemy import MetaData, create_engine
def main():
uri = os.environ.get(
"MEMGPT_PGURI",
"postgresql+pg8000://letta:letta@localhost:8888/letta",
)
engine = create_engine(uri)
meta = MetaData()
meta.reflect(bind=engine)
meta.drop_all(bind=engine)
if __name__ == "__main__":
main()