This topic describes how to drop a collection and the data within.
Dropping a collection irreversibly deletes all data within it.
from pymilvus import utility
utility.drop_collection("book")
await milvusClient.collectionManager.dropCollection({ collection_name: "book",});
err = milvusClient.DropCollection(
context.Background(),
"book",
)
if err != nil {
log.Fatal("fail to drop collection:", err.Error())
}
milvusClient.dropCollection(
DropCollectionParam.newBuilder()
.withCollectionName("book")
.build()
);
delete collection -c book
Parameter |
Description |
collection_name |
Name of the collection to drop. |
Parameter |
Description |
collection_name |
Name of the collection to drop. |
Parameter |
Description |
ctx |
Context to control API invocation process. |
CollectionName |
Name of the collection to drop. |
Parameter |
Description |
CollectionName |
Name of the collection to drop. |
Option |
Description |
-c |
Name of the collection to drop. |
- Learn more basic operations of Milvus: