files/providers/wls_authentication_provider/destroy.py.erb
# check the domain else we need to skip this (done in wls_access.rb)
real_domain='<%= domain %>'
name = '<%= authentication_provider_name %>'
edit()
startEdit()
try:
cd('/')
realmName = cmo.getSecurityConfiguration().getDefaultRealm()
path = getPath(realmName)
cd(path)
cmo.destroyAuthenticationProvider(getMBean(path + '/AuthenticationProviders/' + name))
save()
activate()
report_back_success()
except:
report_back_error()