function plugin_geninventorynumber_uninstall()
{
    $migration = new Migration("0.85+1.0");
    include_once GLPI_ROOT . '/plugins/geninventorynumber/inc/config.class.php';
    include_once GLPI_ROOT . '/plugins/geninventorynumber/inc/profile.class.php';
    include_once GLPI_ROOT . '/plugins/geninventorynumber/inc/configfield.class.php';
    PluginGeninventorynumberConfig::uninstall($migration);
    PluginGeninventorynumberProfile::removeRightsFromSession();
    PluginGeninventorynumberProfile::uninstallProfile();
    PluginGeninventorynumberConfigField::uninstall($migration);
    return true;
}