public function remove($collectionName, array $criteria = [], array $options = []) {
		$collection = $this->getCollection($collectionName);
		
		if ($this->_profilerEnabled) {
			$message = 'db.remove(' . json_encode($criteria) . ');';
			$event   = $this->getProfiler()->startDelete($message);
		}

		$result  = $collection->remove($criteria, $options);
		$success = (bool) $result['ok'];
		
		if ($this->_profilerEnabled) {
			$success
				? $event->stopSuccess()
				: $event->stopError();
		}
		
		return $success;
	}
public function remove($collectionName, array $criteria = [], array $options = []) {
		$collection = $this->getCollection($collectionName);
		
		if ($this->_profilerEnabled) {
			$message = 'db.remove(' . json_encode($criteria) . ');';
			$event   = $this->getProfiler()->startDelete($message);
		}

		$result  = $collection->remove($criteria, $options);
		$success = (bool) $result['ok'];
		
		if ($this->_profilerEnabled) {
			$success
				? $event->stopSuccess()
				: $event->stopError();
		}
		
		return $success;
	}
public function remove ( $ collectionName , array $ criteria = [ ] , array $ options = [ ] ) { $ collection = $ this -> getCollection ( $ collectionName ) ; if ( $ this -> _profilerEnabled ) { $ message = 'db.remove(' . json_encode ( $ criteria ) . ');' ; $ event = $ this -> getProfiler ( ) -> startDelete ( $ message ) ; } $ result = $ collection -> remove ( $ criteria , $ options ) ; $ success = ( bool ) $ result [ 'ok' ] ; if ( $ this -> _profilerEnabled ) { $ success ? $ event -> stopSuccess ( ) : $ event -> stopError ( ) ; } return $ success ; }
Remove the data from the collection

@param  string $collectionName
@param  array  $criteria
@param  array  $options
@return bool
Remove the data from the collection