Jack Wilshere and West Ham have mutually agreed to terminate his contract.
Wilshere had one year remaining on his £100,000-a-week contract.
West Ham said in a statement: "West Ham United can confirm that the Club has agreed with Jack Wilshere to a mutual termination of the midfielder's contract.
"The 28-year-old departs having played 19 times and scored once since joining the Hammers in the summer of 2018. Everyone at West Ham United would like to wish Jack all the best for his future career."