code: def remove_log_action(portal):
      
      logger.info("Removing Log Tab ...")
      portal_types = api.get_tool("portal_types")
      for name in portal_types.listContentTypes():
          ti = portal_types[name]
          actions = map(lambda action: action.id, ti._actions)
          for index, action in enumerate(actions):
              if action == "log":
                  logger.info("Removing Log Action for {}".format(name))
                  ti.deleteActions([index])
                  break
      logger.info("Removing Log Tab [DONE]")
docs: Removes the old Log action from types