Search code examples
drupaldrupal-7drupal-modules

What should a well behaved drupal module delete on uninstall?


I'm creating a drupal module and I would like to ask what I should actually delete as part of the uninstall process. My module creates a new node type, so does it mean that I should also actually delete all data of that node type? What would users expect the behavior to be and how can I make update of the module as smooth as possible for users?

Thanks!


Solution

  • Anything the module created, including module specific variables, database tables, content types that only it can handle, views specific to those types, etc.