fix: remove unused import from docs
This commit is contained in:
parent
2b4d6cafd4
commit
e3dbdd79b9
1 changed files with 1 additions and 51 deletions
|
|
@ -224,8 +224,7 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from os import listdir, path\n",
|
||||
"from uuid import uuid5, UUID\n",
|
||||
"from os import path\n",
|
||||
"import cognee\n",
|
||||
"\n",
|
||||
"# Absolute path to the data directory\n",
|
||||
|
|
@ -356,55 +355,6 @@
|
|||
"id": "ffaf695f",
|
||||
"metadata": {},
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c0d1187d",
|
||||
"metadata": {},
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "144d67aa",
|
||||
"metadata": {},
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "f087510e-6df7-4a03-945d-70f8c91c8d65",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from qdrant_client import models, QdrantClient\n",
|
||||
"import os\n",
|
||||
"qdrant = QdrantClient(\n",
|
||||
" url = os.getenv('QDRANT_URL'),\n",
|
||||
" api_key = os.getenv('QDRANT_API_KEY'))\n",
|
||||
"\n",
|
||||
"collections_response = qdrant.http.collections_api.get_collections()\n",
|
||||
"collections = collections_response.result.collections\n",
|
||||
"\n",
|
||||
"# Delete each collection\n",
|
||||
"for collection in collections:\n",
|
||||
" collection_name = collection.name\n",
|
||||
" print(f\"Deleting collection: {collection_name}\")\n",
|
||||
" delete_response = qdrant.http.collections_api.delete_collection(collection_name=collection_name)\n",
|
||||
" if delete_response.status == \"ok\":\n",
|
||||
" print(f\"Collection '{collection_name}' deleted successfully.\")\n",
|
||||
" else:\n",
|
||||
" print(f\"Failed to delete collection '{collection_name}'. Response: {delete_response}\")\n",
|
||||
"\n",
|
||||
"print(\"All collections have been deleted.\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "1568f859-67aa-4e0c-89ff-712505900836",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue