GitHub Action
Sync from GitHub Actions (Clean Commit)
7f22d3c
raw
history blame contribute delete
545 Bytes
import sys
import os
# Add parent directory to path to import system_manager
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from system_manager import SystemManager, SPACE_X
def clear_x():
mgr = SystemManager()
print(f"πŸ—‘οΈ Clearing collection: {SPACE_X}...")
mgr.client.delete_collection(SPACE_X)
print(f"βœ… Collection {SPACE_X} deleted.")
mgr._init_collections()
mgr._ensure_indices()
print(f"βœ… Collection {SPACE_X} re-initialized.")
if __name__ == "__main__":
clear_x()