"""Delete eu_2023_988 duplicate from production Qdrant.""" import httpx PROD_URL = "https://qdrant-dev.breakpilot.ai" HEADERS = {"api-key": "z9cKbT74vl1aKPD1QGIlKWfET47VH93u"} # Delete resp = httpx.post( f"{PROD_URL}/collections/bp_compliance_ce/points/delete", json={"filter": {"must": [{"key": "regulation_id", "match": {"value": "eu_2023_988"}}]}}, headers=HEADERS, timeout=60, ) print(f"Delete status: {resp.json().get('status')}") # Verify resp2 = httpx.post( f"{PROD_URL}/collections/bp_compliance_ce/points/count", json={"filter": {"must": [{"key": "regulation_id", "match": {"value": "eu_2023_988"}}]}, "exact": True}, headers=HEADERS, timeout=15, ) remaining = resp2.json().get("result", {}).get("count", 0) print(f"Remaining: {remaining}") # Total resp3 = httpx.get(f"{PROD_URL}/collections/bp_compliance_ce", headers=HEADERS, timeout=10) total = resp3.json().get("result", {}).get("points_count", "?") print(f"Total points: {total}")