This is probably stating the obvious, or maybe not.

Two features that are missing:

Uninstall theme from web admin interface
Update drupal core (says that feature is coming soon, but anyways)

If there is already a duplicate to this I may offer some suggestions.

CommentFileSizeAuthor
#10 theme_uninstall_v2.patch4.11 KBxaav
#4 theme_uninstall.patch8.88 KBxaav
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

David_Rothstein’s picture

Title: Uninstall Theme && Drupal Core Update » Allow themes to be removed via the update manager
Version: 7.0-rc3 » 8.x-dev
Component: install system » update.module

The issue for updating Drupal core is at #606592: Allow updating core with the update manager.

As for uninstalling themes, I assume you mean being able to remove them completely from the filesystem (so they don't even show up on the Appearance page). Not sure if there is an issue for that yet. I guess it would make sense since otherwise that page can really fill up if you have downloaded a bunch of themes in order to try them out.

xaav’s picture

Status: Active » Needs work
David_Rothstein’s picture

Status: Needs work » Active

"Needs work" means there is work already in progress, such as a patch. Which is not currently the case here :)

xaav’s picture

FileSize
8.88 KB

This is nowhere near completion, but it is somewhere to start. I might work on it some more, but no guarantees.

xaav’s picture

Status: Active » Needs review
dww’s picture

Status: Needs review » Postponed

- I'm not sure this is a good idea, but I'm open to being convinced.

- However, can we please put our energy into fixing the nearly-critical bugs listed at http://drupal.org/node/479086 before 7.0 ships?

- If we were to do this, the patch has a lot of problems:

A) Frequently refers to "modules" when trying to deal with themes.
B) Doesn't actually invoke the update manager at all to remove these files as the user that owns them.
...

I'm not going to spend the time on a more thorough review now given the impending 7.0 release and all the brokenness that still needs my attention. ;)

Cheers,
-Derek

xaav’s picture

Sorry, I am somewhat new to drupal. What I was trying to do is get the quality assurance bot to test my patch, so I could get some feedback on it.

David_Rothstein’s picture

Status: Postponed » Needs work

Since Drupal 7 is released and this issue is for Drupal 8, there is no longer anything specific to postpone it on. Moving to "needs work".

xaav’s picture

Let me see if I can implement this.

I'm sort of new to drupal development, so It probably won't be pretty.

Normally, all it would take with PHP is:

require_once 'delete_dir.php' (I have this library)

delete_dir(__DIR__.'/sites/all/themes/'.$theme_name);

xaav’s picture

FileSize
4.11 KB

Patch attached. This is closer than I got last time, but still not working yet.

xaav’s picture

Component: update.module » system.module

Actually, I think this should go in the system module.

David_Rothstein’s picture

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

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should 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.

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

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

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

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

smustgrave’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

This seems like it was more intended for D7.

Closing as there hasn't been movement in 12 years but I know it's possible to uninstall themes from the Appearance tab and via configuration management.