Remove xpack.security.authc.realms.active_directory.my_ad.secure_bind_password

Hello

I was trying to setup AD auth but I see the license doesnt support it anymore so I was trying to remove it but now I get

Caused by: org.elasticsearch.common.settings.SettingsException: found settings for the realm [my_ad] (with type [active_directory]) in the secure settings (elasticsearch.keystore), but this realm does not have any settings in elasticsearch.yml. Please remove these settings from the keystore, or update their names to match one of the realms that are defined in elasticsearch.yml -

How do I remove the password?

You can use elasticsearch-keystore remove

elasticsearch-keystore remove xpack.security.authc.realms.active_directory.my_ad.secure_bind_password