Zend certified PHP/Magento developer

Upgrade to 2.3.5-p1 , module breaks bin/magento, how to disable?

I have just upgraded my development environment to Magento 2.3.5-p1 using:

composer require magento/product-community-edition=2.3.5-p1
composer update

Running the bin/magento command line crashes on start with a fatal error.

PHP Fatal error: Uncaught Error: Cannot instantiate interface
MagentoCronModelDeadlockRetrierInterface in
/var/www/import/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:5

After some trial & error, I have managed to find the offending code (MagentoCronModelSchedule:87) and the 3rd party module that triggered it.

How do I cleanly disable the module? I cannot run bin/magento module:disable as it won’t even start.

Removing it from app/etc/config.php is not sufficient. If I move the module out of the way, and empty /generated/code, it stills triggers error about missing code.

In ClassReader.php line 26:

  Class PotatoCrawlerModelCommandQueue does not exist