public function wipe($collection)
    {
        try {
            return $this->_toolbox->getCollectionHandler()->truncate($collection);
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
public function wipe($collection)
    {
        try {
            return $this->_toolbox->getCollectionHandler()->truncate($collection);
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
public function wipe ( $ collection ) { try { return $ this -> _toolbox -> getCollectionHandler ( ) -> truncate ( $ collection ) ; } catch ( \ Exception $ e ) { $ normalised = $ this -> _toolbox -> normaliseDriverExceptions ( $ e ) ; throw new CollectionManagerException ( $ normalised [ 'message' ] , $ normalised [ 'code' ] ) ; } }
Deletes all the documents inside the collection, but leaves the indexes and metadata intact.
@param  string                     $collection The name of the collection.
@throws CollectionManagerException
Deletes all the documents inside the collection but leaves the indexes and metadata intact .