MongoDB\DeleteResult::getDeletedCount()
On this page
Definition
Return Values
The number of documents that were deleted.
Errors/Exceptions
MongoDB\Exception\BadMethodCallException
if this method is
called and the write operation used an unacknowledged write concern.