As discussed on https://github.com/drush-ops/drush/issues/3454, there is no check in \Drupal\Core\Extension\ModuleInstaller::validateUninstall that the module is currently installed, so if you attempt to uninstall a module that has already been uninstalled, drush will report that it has been successfully uninstalled.

Comments

malcomio created an issue. See original summary.

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

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). 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.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now 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: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

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

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Status: Active » Closed (cannot reproduce)
Issue tags: +Bug Smash Initiative

I tested this on 9.3.x, with a fresh standard install and was not able to reproduce this error.

$ ddev drush pmu -y color && ddev drush pmu -y color && ddev drush pmu -y color
The following extensions will be uninstalled: color
Do you really want to continue? (y/n): y
color was successfully uninstalled.                                  [ok]
color is already uninstalled.                                        [ok]
There were no extensions that could be uninstalled.                  [ok]
color is already uninstalled.                                        [ok]
There were no extensions that could be uninstalled.                  [ok]
$ ddev drush pmu -y migrate && ddev drush pmu -y migrate 
migrate is already uninstalled.                                      [ok]
There were no extensions that could be uninstalled.                  [ok]
migrate is already uninstalled.                                      [ok]
There were no extensions that could be uninstalled.                  [ok]

I have updated the related drush issue.

Therefore, closing as cannot reproduce. If you are experiencing this problem reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").

Thanks!