Artificial intelligent assistant

How to revoke a GPG key without confirmation? After running the following command to revoke a key gpg --gen-revoke <key ID> I have to then press `y`, 2 times `Enter` followed by `y` **How would you suggest to answer automatically, that is revoking a key without any other user interaction than the passphrase prompt?**

It appears to me that gpg opens the controlling terminal directly, so you're unable to redirect input.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy f1883d11effe2cd542fefcf3364218f7