The former Lazio forward netted seven times in all competitions for the east Londoners and has now called time on his Premier League career.
The club said on their Twitter account: “West Ham would like to thank Mauro for his efforts in Claret and Blue and wish him all the best in his future career.