PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 5th of January, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[15:37:29] <qwerqweasdfa> For the PHP driver, how do I delete all?
[15:37:50] <qwerqweasdfa> $abc = new MongoDB\Driver\BulkWrite;
[15:38:00] <qwerqweasdfa> $abc->delete( [] );
[15:38:08] <qwerqweasdfa> Does not work, but works with any actual criteria.
[15:38:22] <Derick> https://docs.mongodb.com/php-library/master/reference/method/MongoDBCollection-deleteMany/
[15:38:36] <qwerqweasdfa> $abc->delete( [ "x"=>1 ] ) will work.
[15:39:22] <Derick> $abc->delete( [] ); should work too, but can take some time
[15:41:50] <qwerqweasdfa> Doesn't seem to.
[15:41:56] <qwerqweasdfa> Is this outdated? http://php.net/manual/en/class.mongodb-driver-bulkwrite.php
[15:42:15] <Derick> no, but we recommend you use the library instead