You can delete “Group” from your migrated workspaces with these following steps.

1. Open Cognex Cognex Deep Learning Studio.
2. Import the workspace that includes "Group" from ViDi Suite to VisionPro Deep Learning and open the workspace.
3. After the imported workspace is loaded in VisionPro Deep Learning, select the stream that you are trying to remove “Group” (Stream can be selected with a drop-down list placed at the top-left corner whose default value is "default".)
4. Go to “Plugins” menu and select Script Editor.

5. On the Script Editor Window, click "New" and erase the contents of the current editor.

6. Copy and paste the below scripts in the blank editor.

   Copy

       1
       2
       3
       4
       5
       6
       7
       8
       9
       10
       11
       12
       13
       14
       15
       16
       17
       18
       19
       20
       21
       22
       23
       24
       25
       26
       27
       28
       29
       30
       31
       32
       33
       34
       35
       36
       37
       38
       39
       using System;
       using System.Collections.Generic;
       using System.Linq;
       using System.Text;
       using System.Threading.Tasks;
       using System.Threading;
       using ViDi2.Training.UI;
       using ViDi2.Training;
       using ViDi2;

       public class Script
       {
           public static void Main(ViDi2.Training.ITool tool)
           {
               if (tool == null)
               {
                   Console.WriteLine("No Tool selected");
               }
               var toolList = tool.Stream.Tools;
               foreach(var parentTool in toolList)
               {
                   parentTool.Database.SetViewGroup("", "");
                   CleanGroup(parentTool);
               }
           }

           public static void CleanGroup(ViDi2.Training.ITool tool)
           {
               if(tool.Children != null && tool.Children.Count > 0)
               {
                   foreach(var childTool in tool.Children)
                   {
                       childTool.Database.SetViewGroup("", "");
                       CleanGroup(childTool);
                   }
               }
           }
       }

7. Click “Run”, and you can find all Groups are deleted.