del sys.modules['my-module'] However if your module imported other modules, they'll still be there. If there are references to objects your module created, they'll still be there. A better option IMO is to use imp.find_module and then import.