code: def admin_docker_massaction_view(context, request):
      
      items_list = request.POST.getall('selected_item')
      for item in items_list:
          try:
              context.cli.remove_image(item)
              request.session.flash(["deleted {}".format(item), "success"])
          except docker.errors.APIError as e:
              request.session.flash([e.explanation, "error"])
      url = "/" + request.sacrud_prefix + "/" + resource_path(context.__parent__)
      return HTTPFound(location=url)
docs: Mass action view.