Unregister a driver type

@param   string  name of the driver type
@return  bool
7709
public static function unregister_driver_type($type)
	{
		if (in_array($type,array('login', 'group', 'acl')))
		{
			\Error::notice('Cannot remove driver type, included drivers login, group and acl cannot be removed.');
			return false;
		}

		unset(static::$_drivers[$type]);
		return true;
	}
1213096
function uninstall($name)
    {
	    $result = array();
    	$result['status'] = false;
	    try {
		    $JFusionAdmin = Factory::getAdmin($name);
		    if ($JFusionAdmin->isConfigured()) {
			    //if this plugin had been valid, call its uninstall function if it exists
			    $success = 0;
			    try {
				    list($success, $reasons) = $JFusionAdmin->uninstall();

				    $reason = '';
				    if (is_array($reasons)) {
					    $reason = implode('</li><li>' . $name . ': ', $reasons);
				    } else {
					    $reason = $name . ': ' . $reasons;
				    }
			    } catch (Exception $e) {
				    $reason = $e->getMessage();
			    }
			    if (!$success) {
				    throw new RuntimeException(Text::_('PLUGIN') . ' ' . $name . ' ' . Text::_('UNINSTALL') . ' ' . Text::_('FAILED') . ': ' . $reason);
			    }
		    }
		    $db = Factory::getDBO();

		    $query = $db->getQuery(true)
			    ->select('name , original_name')
			    ->from('#__jfusion')
			    ->where('name = ' . $db->quote($name));

		    $db->setQuery($query);
		    $plugin = $db->loadObject();

		    // delete raw
		    $query = $db->getQuery(true)
			    ->delete('#__jfusion')
			    ->where('name = ' . $db->quote($name));
		    $db->setQuery($query);
		    $db->execute();

		    $query = $db->getQuery(true)
			    ->delete('#__jfusion_users')
			    ->where('jname = ' . $db->quote($name));
		    $db->setQuery($query);
		    $db->execute();

		    $event = new Event('onInstallerPluginUninstall');
		    $event->addArgument('name', $name);
		    Factory::getDispatcher()->triggerEvent($event);

		    if ($plugin || !$plugin->original_name) {
			    $dir = JFusionFramework::getPluginPath($name);

			    if (!$name || !is_dir(Path::clean($dir))) {
				    throw new RuntimeException(Text::_('UNINSTALL_ERROR_PATH'));
			    } else {
				    /**
				     * ---------------------------------------------------------------------------------------------
				     * Remove Language files Processing Section
				     * ---------------------------------------------------------------------------------------------
				     */
				    // Get the extension manifest object
				    $manifest = $this->getManifest($dir);
				    if (is_null($manifest)) {
					    throw new RuntimeException(Text::_('INSTALL_NOT_VALID_PLUGIN'));
				    } else {
					    $this->manifest = $manifest;

					    // remove files
					    if (!Folder::delete($dir)) {
						    throw new RuntimeException(Text::_('UNINSTALL_ERROR_DELETE'));
					    } else {
						    //return success
						    $msg = Text::_('PLUGIN') . ' ' . $name . ' ' . Text::_('UNINSTALL') . ': ' . Text::_('SUCCESS');
						    $result['message'] = $msg;
						    $result['status'] = true;
					    }
				    }
			    }
		    }
	    } catch (Exception $e) {
		    $result['message'] = $name . ' ' . $e->getMessage();
		    $this->installer->abort($e->getMessage());
	    }
        return $result;
    }
1093644
public function unRegister()
    {
        if (isset(static::$handlers[$this->handlerId])) {
            if (!is_null($this->getKey())) {
                static::$keys[$this->getKey()]--;
            }
            unset(static::$handlers[$this->handlerId]);
            return true;
        }
        return false;
    }
948109
public function registerDriverElement(string $name, ElementInterface $element, string $driver_name)
    {
        $this->getDriver($driver_name, 'skip bootstrap')->registerElement($name, $element);
    }
811359
public function removeProvider($name)
    {
        if ($this->hasProvider($name)) {
            unset($this->providers[$name]);

            return true;
        }

        return false;
    }
1110339
private void unregister(String path,ZKMBeanInfo bean) throws JMException {
        if(path==null)
            return;
        if (!bean.isHidden()) {
            MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
            try {
                mbs.unregisterMBean(makeObjectName(path, bean));
            } catch (JMException e) {
                LOG.warn("Failed to unregister MBean " + bean.getName());
                throw e;
            }
        }
    }
99154
public function driver(?string $name = null)
    {
        $name = $name ?: $this->getDefaultDriver();

        return $this->drivers[$name] = $this->get($name);
    }
943181
public function unregisterModule($name)
    {
        if (array_key_exists($name, $this->modules)) {
            unset($this->modules[$name]);
            return true;
        }
        return false;
    }
1166282
public static function deleteInstance($name)
  {
    $adapter = self::getDataAdapter();
    if (!is_null($adapter)) {
      $key = self::_instanceKey($name);
      
      $result = $adapter->delete($key);
    } else {
      $result = false;
    }
    self::clearInstance($name);
    
    return $result;
  }
1225958
private static void unregister(ObjectName objectName) {
    MBeanServer server = ManagementFactory.getPlatformMBeanServer();
    try {
      for (ObjectName name : server.queryNames(objectName, null)) {
        server.unregisterMBean(name);
      }
    } catch (MBeanRegistrationException | InstanceNotFoundException e) {
      throw new CacheException("Error unregistering " + objectName, e);
    }
  }
140341
def destroy_by_name(name, driver):

    """"""

    matches = [node for node in list_nodes(driver) if node.name == name]
    if len(matches) == 0:
        logger.warn('no node named %s' % name)
        return False
    else:
        return all([node.destroy() for node in matches])
44960
public function remove($name)
    {
        $removed = false;
        if ($this->has($name)) {
            unset($this->_inputs[$name]);
            $removed = true;
        }
        return $removed;
    }
732098
def delete(self, name):
        """"""
        obj = self._get_object(name)
        if obj:
            return self.driver.delete_object(obj)
786245
public function unregisterFunction($name)
    {
        if(isset($this->__functions[$name])) {
            unset($this->__functions[$name]);
        }

        return $this;
    }
611454
public static function unloadDriver($driver)
    {
        foreach (array_keys(self::$drivers, $driver) as $key) {
            unset(self::$drivers[$key]);
        }
    }
134054
public function unregister($name)
    {
        if (!isset($this->registry[$name])) {
            throw new Exception('Object with name "'.$name.'" is not registered');
        }

        $object = $this->registry[$name];
        unset($this->registry[$name]);

        return $object;
    }
953569
public function registerDriver($name, DriverInterface $driver)
    {
        $name = strtolower($name);
        $this->drivers[$name] = $driver;
    }