i want to remove the help icon from top bar of erpnext
There is no configuration to remove Help icon from the top bar of erpnext. Why you want to remove that icon? You can access the in-app documentation, user forum, chat etc features from the help menu.
Yes Help is really helpful but if you really want I think this will help: