删除集合方案一:defdelete_collection():frompymilvusimportutilityutility.drop_collection(settings.MILVUS_CONFIG.collection.name)方案二:fromcore.milvus.modelsimportcollectionconn=connections._fetch_handler('default')ifconn.has_collection(settings.MILVUS_CONFIG.collection.name):logger.debug('集合已经存在')collection.drop()
