You can remove items from a LabVIEW project interactively with the Project Explorer window or programmatically with the LabVIEW API.

Remove items from a LabVIEW project in the following ways:
OptionDescription
Interactive Use the Project Explorer window.
  • Right-click the item you want to remove and select Remove from Project from the shortcut menu.
  • Select the item you want to remove and press the Remove from Project button on the Standard toolbar.
  • From the Items page, select the item you want to remove and press the Delete key.
Programmatic Use the Delete method to delete the item through a reference from the project.
Note Items in the project may refer to other items. For example, if you remove a subVI from the project that another VI in the project calls, the subVI will move to Dependencies.

If the option to delete an item does not appear in Project Explorer, it might be in an auto-populating folder or have a naming conflict.

  • Auto-populating folders: Because items in auto-populating folders reflect the contents of a folder on disk, you cannot remove these items directly from Project Explorer. To remove an item from an auto-populating folder, do either of the following:
    • Disable auto-populating for the auto-populating folder: Right-click the folder and select Stop Auto-populating.
    • Remove the file you want to remove from the linked file location.
  • Naming conflicts: If the name of an item is identical to that of a dependency within the project, you cannot remove the item from the project. Try renaming the item and then attempt to remove it from the project again.