PHP - Manual: MongoDB::dropCollection
2024-11-13
(PECL mongo >=0.9.0)
MongoDB::dropCollection — Drops a collection [deprecated]
Use MongoCollection::drop() instead.
This function leaks memory in version 1.0.7 and earlier!
coll
MongoCollection or name of collection to drop.
Returns the database response.
官方地址:https://www.php.net/manual/en/mongodb.dropcollection.php