It's regular Java keystore and you manage it using keytool
(docs), so
keytool -delete -alias ALIAS -keystore KEYSTORE
and in general keytool -delete -help
:
keytool -delete [OPTION]...
Deletes an entry
Options:
-alias <alias> alias name of the entry to process
-keystore <keystore> keystore name
-storepass <arg> keystore password
-storetype <storetype> keystore type
-providername <providername> provider name
-providerclass <providerclass> provider class name
-providerarg <arg> provider argument
-providerpath <pathlist> provider classpath
-v verbose output
-protected password through protected mechanism
Signed apk is generating by using Key1 but I need to make it using key2 .
But this can be changed in Android Studio - alias of key used to sign release builds is not hardcoded nor permanent.