- 🇹🇹Trinidad and Tobago xamount
Just building on top of #5, if you are unable to run drush on a live environment, an alternative is to use a hook_update_N in a custom module:
function MODULENAME_update_N(&$sandbox) { /** @var \Consolidation\SiteAlias\SiteAliasManager $alias_manager */ $alias_manager = Drush::service('site.alias.manager'); $selfRecord = $alias_manager->getSelf(); $your_queue = ['bundle' => 'YOUR_QUEUE_MACHINE_NAME']; Drush::processManager()->drush($selfRecord, 'entity:delete', ['entity_subqueue'], $your_queue)->mustRun(); }
Just ensure in your deployment that
drush updb
is fired beforedrush cim
(which is usually the case).