Delete a method

@param string $name

@return bool
178173
final public function delete($name) {

        if ( array_key_exists($name, $this->rpc_methods) ) {

            unset($this->rpc_methods[$name]);

            $this->logger->debug("Deleted method $name");

            return true;

        } else {

            $this->logger->warning("Cannot delete method $name: entry not found");

            return false;

        }

    }
209542
public function unsetProperty($name)
    {
        if (!$this->hasProperty($name)) {
            return false;
        }

        if (strstr($name, '.')) {
            try {
                $path = explode('.', $name);
                $root = $path[0];
                unset($path[0]);

                $array = ($this->hasProperty($root) ? $this->getProperty($root) : []);
                $arrayPath = '["'.implode('"]["', $path).'"]';

                eval('unset($array'.$arrayPath.');');

                $this->setProperty($root, $array);
            } catch (Exception $e) {
                return false;
            }

            return true;
        }

        if ($this->isArray()) {
            unset($this->object[$name]);
        } else {
            unset($this->object->$name);
        }

        return true;
    }
1157309
protected function deleteRecord($name)
    {
        try {
            return (bool) $this->db
                    ->from($this->table)
                    ->where($this->columns['name'])->eq($name)
                    ->delete();
        } catch (PDOException $e) {
            return false;
        }
    }
930064
public function hasOwnMethod($name)
    {
        if ($this->hasMethod($name) === true) {
            return $this->getMethod($name)->class === $this->getName();
        } else {
            return false;
        }
    }
506264
public function del($name)
    {
        if ($this->exists($name)) {
            return $this->set($name, false, time() - 3600);
        }

        return false;
    }
245363
public function delete($name)
    {
        $path = explode('.', $name);
        $key = array_shift($path);

        if ($path) {
            if ($this->checkCache($key) && $this->cache[$key]->delete($path)) {
                return $this->updateRecord($key);
            }
            return false;
        }

        unset($this->cache[$key]);

        return $this->deleteRecord($key);
    }
14125
public function deleteFile($name = null)
    {
        foreach ($this->getAllFields() as $field) {
            $path = $this->getFilePath($field, $name);
            if (!$path || !is_file($path) || !file_exists($path)) {
                continue;
            }
            unlink($path);
        }
        if ($name == $this->owner->getAttribute($this->fileField)
           && ($files = $this->getFileList())     
        ) {
            $this->owner->updateAttributes([$this->fileField => reset($files)]);
        }
        return true;
    }
312564
public function remove($name)
    {
        unset($this->treated[$name]);
        unset($this->services[$name]);
        unset($this->parameters[$name]);
    }
1030810
public function remove(string $name) : bool
    {
        $key = $this->makeCacheKey($name);
        
        $this->cache->forget($key);
        
        unset($this->jobs[$name]);
    }
893766
public function delete($name)
    {
        if ($this->check($name)) {
            $this->_overwrite($_SESSION, Hash::remove($_SESSION, $name));
        }
    }
1137243
public static function delete($name)
    {
        unset($_COOKIE[$name]);
        return Base::getHttp()->setCookie($name, null, -86400, Cookie::$path, Cookie::$domain, Cookie::$secure, Cookie::$httpOnly);
    }
633761
public function remove_script($name)
    {
        $result = $this->sieve->remove($name);

        // Kolab's KEP:14
        if ($result && $this->rc->config->get('managesieve_kolab_master')) {
            $this->deactivate_script($name);
        }

        return $result;
    }
681408
public function delete($name, $ttl = false) {
        return false === $ttl ?
            $this->handler->delete($name) :
            $this->handler->delete($name, $ttl);
    }
1302202
public function unregisterService($name)
    {
        $name = strtolower($name);

        if (isset($this->services->$name)) {
            unset($this->services->$name);
            return true;
        }
        return false;
    }
810453
public function delete($name)
    {
        $name = $this->parseName($name);
        ObjectArrayHelper::remove($this->data, $name);
        $this->isChanged = true;
    }
545016
public function delete($name)
    {
        if ( ! $this->exists($name)) {
            return true;
        }

        unset($this->cookies[$name]);

        return $this->set($name, null, -1);
    }
1344060
public static function remove($name)
    {
        exception_if(!static::exists($name), SessionKeyNotFoundException::class, $name);
        //
        static::$register[$name] = null;

        static::save();

        return true;
    }