I am able to remove the window icon from WPF window using WinApi\'s, however I get the icon again in the application window when I run just the executable of the WPF project
Just add this WindowStyle="ToolWindow" to your window properties.
WindowStyle="ToolWindow"