Title: Remove a module from initadd under Solaris
Tags: unix;solaris
Question: I accidentally added a non-existent module to my profile (or whatever it is you add it to) with
module initadd foo
and now every time I log on, I get an error message about foo not being found. How do I remove the module foo from the list, so I won't get the error message?

Here is the accepted answer: This should do it:
module initrm foo


{'source': 'StackExchangeDataset', 'subset': 'superuser.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 2.5', 'CreationDate': '2010:00:08/04/10', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<unix><solaris>', 'Title': 'Remove a module from initadd under Solaris', 'ViewCount': 669, 'id': 171834, 'user_AboutMe': "<p>I am an engineering physicist from Stockholm, Sweden, with a passionate interest in programming and software architecture. Since creating my first program at age 12 (a VB6 app that showed a smiley when a button was clicked) I've spent many hours in front of my computer, watching screen casts and reading blogs about programming as well as trying all the new concepts out in my own programs. With a Master's degree in Engineering Physics from the Royal Institute of Technology in Stockholm, Sweden, I have deepened my modelling and reasoning skills, as well as had the opportunity to try out many different technologies and tools.</p>\n<p>I am currently working as a software engineer at Spotify, mostly massaging data to enable our internal research into developer productivity.</p>\n", 'user_AccountId': 17140.0, 'user_DisplayName': 'Tomas Aschan', 'user_Reputation': 2766.0, 'user_Views': 191.0, 'user_id': 9496.0}}