Removing the firmware
If you need to remove the firmware, you can re-install the official firmware for your radio using the official firmware loader application. However, before re-installing the official firmware, you should restore your Flash backup using OpenGD77, as this will restore your original codeplug.
If restoring the Flash does not work, you may need to modify the settings.ini file for the official CPS so that your old codeplug can be uploaded. The radio likely now requires a password before it can be used.
In settings.ini, change
password = 0 to password = password
Let's see if it works or not.