The Brazilians have amicably agreed to part ways with Hamren, who is set to be appointed manager of recent World Cup debutants Iceland.
The club have released a statememt to confirm the departure of the Swede, who arrived for his technical support role in January.
The Swedish tactician, who led his nation at the European Championships in 2016, has recieved the full support of the Tshwane giants' hierarchy.
"Mamelodi Sundowns have announced that their Head of Technical, Erik Hamren has been released from his contract to take over as the national coach of Iceland, which participated in the FIFA World Cup in Russia," read the statement.
"The President of Mamelodi Sundowns, Dr Patrice Motsepe, the Board, Technical team, management and staff thank Erik Hamren and wish him everything of the best in his new role."