删除汇合
计划一:
def delete_collection():
from pymilvus import utility
utility.drop_collection(settings.MILVUS_CONFIG.collection.name)
计划二:
from core.milvus.models import collection
conn = connections._fetch_handler('default')
if conn.has_collection(settings.MILVUS_CONFIG.collection.name):
logger.debug('汇合已存在')
collection.drop()