From f87cf043259e647e763f7158fd1ce1a4b17b3f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=A0=D0=BE=D0=BC?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Fri, 5 Jun 2026 11:34:04 +0000 Subject: [PATCH] Add cleanup.py --- cleanup.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 cleanup.py diff --git a/cleanup.py b/cleanup.py new file mode 100644 index 0000000..677d148 --- /dev/null +++ b/cleanup.py @@ -0,0 +1,35 @@ +import os +import pathlib + +def cleanup(): + """Delete legacy files from the repository root.""" + legacy_files = [ + "agent.py", + "chunker.py", + "cli.py", + "config.py", + "init_loader.py", + "qdrant_store.py", + "rag_tools.py", + "tools.py", + "vector_store.py", + "__init__.py", + ] + for filename in legacy_files: + try: + os.remove(filename) + print(f"Deleted {filename}") + except FileNotFoundError: + pass + except Exception as e: + print(f"Could not delete {filename}: {e}") + # Optionally delete this cleanup script itself + try: + script_path = pathlib.Path(__file__).resolve() + script_path.unlink() + print("Deleted cleanup.py") + except Exception as e: + print(f"Could not delete cleanup.py: {e}") + +if __name__ == "__main__": + cleanup() \ No newline at end of file