public static function removeResource ($group, $name = FALSE)
	{
		
		// Remove resource from group
		
		if ($name)
		{
			
			unset (self::$resources[$group][$name]);
			
			// Remove default if set to resource
			
			if (self::getGroupSetting ($group, 'default') == $name)
			{
				self::removeDefault ($group);
			}
			
		}
		
		// Else remove group
		
		else
		{
			unset (self::$resources[$group]);
		}
		
		// Remove group settings if nothing left in the group
		
		if (self::countResourceGroup ($group) < 1)
		{
			unset (self::$resourceSettings[$group]);
		}
		
	}