TurboActivate Deactivate(True) throws NotActivatedExceptionAnswered

I remove an activation with the API call limelm.pkey.deactivate. Now when the app is started it will initially report as Activated but the IsGenuine check fails. The Activation is removed as a result, but the pkey remains.

Here I would like to Deactivate(True) so that the machine is ready to ask for a key, unfortunately, it throws NotActivatedException. How else can I remove the pkey?

, edited
Answer

If you're not activated you can just use TA_CheckAndSavePKey() to set a new key.

, edited

I would like to remove the key from the machine.

Reactivate then deactivate with the remove key parameter set to 1 / true.