We do not have "uninstall theme" functionality.

For example at uninstall the corresponding records from the {block} table should be removed, and modules need to be able to interact with theme uninstall (as there are modules with db tables which have theme column).

required hooks for theme management:
hook_install
hook_uninstall
hook_themes_enabled
hook_themes_disabled
hook_themes_installed
hook_themes_uninstalled

Comments

jhodgdon’s picture

Some of these hooks exist, although some are they are not documented.

For instance, functions theme_enable() and theme_disable() currently invoke hook_themes_enabled and hook_themes_disabled, though these hooks are not documented. (Regarding them not being documented, see also #675046: Make sure all hooks in D7 have documentation.)

I'm not sure about the other ones.

These two were added in #491214: implement the top level Appearance / Choose Theme admin page

tim.plunkett’s picture

Version: 7.x-dev » 8.x-dev

Marked #375984: Implement theme uninstall as a duplicate.

lauriii’s picture

Version: 8.0.x-dev » 8.1.x-dev
Issue summary: View changes
Status: Active » Postponed

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

joelpittet’s picture

Status: Postponed » Closed (outdated)
Issue tags: +Needs issue summary update

Closing for triage but feel free to re-open if there is bit of this remaining. Needs an issue summary update though as half of this has been done elsewhere.