Remove built-in themes?

Is there a way to remove Keycloak’s built-in themes so they are not available for selection in the “Realm Settings”->“Themes” tab? I have a few custom themes available, that are acceptable for branding purposes, but I don’t want the admin to be able to choose base or keycloak themes.


did you try removing them from the folder $KEYCLOAK_HOME/themes ?
Or maybe changing the dir in standalone(-ha).xml for the theme section to an empty folder. This last one could be more upgrade-friendly.

That said, if your custom themes use the base theme (eg, for message resources), it will not work.

Both of these suggestions worked, but, as you predicted, because my custom theme was derived from base, I wasn’t able to remove that.