def delete_image(gce, name, module):
 try:
  gce.ex_delete_image(name)
  return True
 except ResourceNotFoundError:
  return False
 except GoogleBaseError as e:
  module.fail_json(msg=str(e), changed=False)

def delete_image ( gce , name , module ) : try : gce . ex_delete_image ( name ) return True except ResourceNotFoundError : return False except GoogleBaseError as e : module . fail_json ( msg = str ( e ) , changed = False )
delete a specific image resource by name .