function hook_uninstall


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 system.api.php hook_uninstall()
cle7 system.api.php hook_uninstall()
elmsmedia7 system.api.php hook_uninstall()
icor7 system.api.php hook_uninstall()
meedjum_blog7 system.api.php hook_uninstall()
mooc7 system.api.php hook_uninstall()

Remove any information that the module sets.

The information that the module should remove includes:

The module should not remove its entry from the {system} table. Database tables defined by hook_schema() will be removed automatically.

The uninstall hook must be implemented in the module's .install file. It will fire when the module gets uninstalled but before the module's database tables are removed, allowing your module to query its own tables during this routine.

When hook_uninstall() is called, your module will already be disabled, so its .module file will not be automatically included. If you need to call API functions from your .module file in this hook, use drupal_load() to make them available. (Keep this usage to a minimum, though, especially when calling API functions that invoke hooks, or API functions from modules listed as dependencies, since these may not be available or work as expected when the module is disabled.)

See also





Related topics

120 functions implement hook_uninstall()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

addanother_uninstall in sites/all/modules/ulmus/addanother/addanother.install
Implement hook_uninstall().
admin_menu_uninstall in sites/all/modules/ulmus/admin_menu/admin_menu.install
Implements hook_uninstall().
admin_theme_uninstall in sites/all/modules/ulmus/admin_theme/admin_theme.install
Implementation of hook_uninstall().
advagg_uninstall in sites/all/modules/ulmus/advagg/advagg.install
Implements hook_uninstall().
advanced_help_uninstall in sites/all/modules/ulmus/advanced_help/advanced_help.install
Implements hook_uninstall().

... See full list

1 invocation of hook_uninstall()
drupal_uninstall_modules in includes/
Uninstalls a given list of disabled modules.


modules/system/system.api.php, line 3544
Hooks provided by Drupal core and the System module.


function hook_uninstall() {



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.