delete() public method
Removes documents from the collection.
public \MongoDB\Driver\WriteResult delete ( $collectionName, $condition, $options = [] ) | ||
---|---|---|
$collectionName | string |
Collection name. |
$condition | array |
Filter condition. |
$options | array |
Delete options. |
return | \MongoDB\Driver\WriteResult |
Write result. |
Please login to continue.