Remove a record from the collection

@param int|\MongoID|Model $param model to remove

@return boolean
552792
public function remove($param)
    {
        if ($param instanceof Model) {
            $param = $param->getId();
        }

        $item = $this->get($param);
        if ($item) {
            $id = (string) $item->getId();
            if ($this->_items[$id]) {
                unset($this->_items[$id]);
            }
        }

        return $this;

    }
943656
public function delete($model, $id) {
		$runtime = $this->runtime[$model->alias];

		$data = array();
		$fields = $this->_normalizeFields($model);
		foreach ($fields as $flag => $date) {
			if (true === $runtime || $flag === $runtime) {
				$data[$flag] = true;
				if ($date) {
					$data[$date] = date('Y-m-d H:i:s');
				}
				if ($flag === $runtime) {
					break;
				}
			}
		}

		$record = $model->find('first', array(
			'fields' => $model->primaryKey,
			'conditions' => array($model->primaryKey => $id),
			'recursive' => -1
		));

		if (!empty($record)) {
			$model->set($model->primaryKey, $id);
			unset($model->data[$model->alias]['modified']);
			unset($model->data[$model->alias]['updated']);
			return $model->save(array($model->alias => $data), false, array_keys($data));
		}

		return true;
	}
827198
public function remove(array $params)
    {
        $key = array_get($params, 'key');
        $index = array_get($params, 'index');

        $lua = <<<'LUA'
redis.call('lset', KEYS[1], ARGV[1], '__DELETED__');
redis.call('lrem', KEYS[1], 1, '__DELETED__');
LUA;

        return $this->getConnection()->eval($lua, 1, $key, $index);
    }
125421
public function one($param = true){
        $this->isAr = true;
        if($this->isPretreatment){
            self::$Pre = $this->bindSql();
            if(!$param) return self::$Pre->queryString;
            return $this->dbh->pone($this->bindSql());
        }
        $bind = $this->bindSql();
        if(!$param) return $this->PrintSQL();
        $this->initialize();
        return $bind->one();
    }
899543
public function delete($id, $params = [])
    {
        return $this->gateway->commit('delete', $this->gateway->buildUrlFromString('webhooks/'.$id));
    }
1040472
public function remove($col, $cond = [], $cb = null, $params = [])
    {
        if (mb_orig_strpos($col, '.') === false) {
            $col = $this->dbname . '.' . $col;
        }

        if (is_string($cond)) {
            $cond = new \MongoCode($cond);
        }

        if ($this->safeMode && is_array($cond)) {
            static::safeModeEnc($cond);
        }
        try {
            $this->request(
                self::OP_DELETE,
                "\x00\x00\x00\x00" . $col . "\x00" . "\x00\x00\x00\x00" . bson_encode($cond),
                false,
                null,
                function ($conn, $reqId = null) use ($col, $cb, $params) {
                    if (!$conn) {
                        !$cb || $cb(['$err' => 'Connection error.']);
                        return;
                    }
                    if ($cb !== null) {
                        $this->lastError($col, $cb, $params, $conn);
                    }
                }
            );
        } catch (\MongoException $e) {
            Daemon::log('MongoClient exception: ' . $e->getMessage() . ': ' . $e->getTraceAsString());
            if ($cb !== null) {
                $cb(['$err' => $e->getMessage(), '$query' => $cond]);
            }
        }
    }
280121
public function delete(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::DELETE,
            ResourceMethodEnum::DELETE,
            $params,
            $id
        );
    }
1047751
function destroyDocument(params) {
  var collection = collections[params.collection]

  if (collection === undefined) {
    return false
  }

  var doc = collection[params.id]

  delete collection[params.id]

  eventEmitter.emit('documentDestroyed', params.collection, doc)

  return true
}
81392
public function filter($param = null) : \SplObjectStorage
    {
        if (!$param) {
            return null;
        }

        if ($param->count() === 1) {
            return $param;
        }

        $idValue          = $returnNode = null;
        $returnCollection = new \SplObjectStorage();
        foreach ($param as $node) {
            if (!$idValue || $this->compare($idValue, $node->getId())) {
                $idValue    = $node->getId();
                $returnNode = $node;
            }
        }

        $returnCollection->attach($returnNode);

        return $returnCollection;
    }
215507
public function delete(string $pattern, array $param) : void
    {
        $this->call('delete', $pattern, $param[0], $param[1], $param);
    }
1320429
public function delete($query, array $params = [])
    {
        $stmt = $this->connection->prepare($query);
        $stmt->execute($params);
        return $stmt->rowCount();
    }
1026843
def param_remove(self, param: 'str') -> None:
        
        for attr in self._param_attr_dicts:
            if param in self.__dict__[attr]:
                self.__dict__[attr].pop(param)

        for attr in self._param_attr_lists:
            if param in self.__dict__[attr]:
                self.__dict__[attr].remove(param)
1048038
public function hasMany(array $params)
    {
        foreach ($params as $param) {
            if (!$this->has($param)) {
                return false;
            }
        }

        return true;
    }
1370601
public function cleanAccessTokens(array $param = [])
    {
        $count = 0;

        foreach ($this->getAllStoredAccessTokenFiles() as $file) {
            $expires_at = $this->loadTimestamp($file);

            if (is_integer($expires_at)) {
                if ($expires_at < time()) {
                    unlink($file);
                    $count++;
                }
            }
        }

        return $count;
    }
1371409
public function __isset(string $param): bool
    {
        return isset(self::$data[self::$method][$param]);
    }
280695
protected function getParam($param)
    {
        $params = $this->getParams();
        if (! isset($params[$param])) {
            return false;
        }
        return $params[$param];
    }
883863
public function removeExtraClassNameField($param)
  {
    if ($param) {
      add_action('init', function () {
        foreach ($this->whiteListedModules as $moduleName) {
          vc_remove_param($moduleName, 'el_class');
        }
      });
    }
  }