drush provision-delete calls drush_get_option('force', FALSE) in
if (!drush_get_option('force', FALSE) && drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_ROOT) && provision_drupal_find_sites()) (files http/delete.provision.inc and platform/delete.provision.inc)
but provision-delete doesn't have this option (force) and can't respect the --force argument.

If you have a drush7 and broken platform you can't delete it without --force option, because drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_ROOT) returns DRUSH_NO_SITE (We could not find an applicable site for that command.).
This is easy to reproduce: Just add a platform with git from http://git.drupal.org/project/hosting.git or other repo without drupal. As result this platform can't be verified and can't be deleted.

Patch fix this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

formatC'vt created an issue. See original summary.

helmo’s picture

Status: Needs review » Fixed
Issue tags: +Aegir 3.2

Thanks, committed.

  • helmo committed f9ac419 on 7.x-3.x authored by formatC'vt
    Issue #2548993 by formatC'vt: drush provision-delete does not respect --...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.