def uninstall_overlay(module, name):
 layman = init_layman()
 if (not layman.is_installed(name)):
  return False
 if module.check_mode:
  mymsg = (("Would remove layman repo '" + name) + "'")
  module.exit_json(changed=True, msg=mymsg)
 layman.delete_repos(name)
 if layman.get_errors():
  raise ModuleError(layman.get_errors())
 return True

def uninstall_overlay ( module , name ) : layman = init_layman ( ) if ( not layman . is_installed ( name ) ) : return False if module . check_mode : mymsg = ( ( "Would remove layman repo '" + name ) + "'" ) module . exit_json ( changed = True , msg = mymsg ) layman . delete_repos ( name ) if layman . get_errors ( ) : raise ModuleError ( layman . get_errors ( ) ) return True
uninstalls the given overlay repository from the system .