Ramirez had managed the Costa Rican team since 2015, helping them to qualify for the World Cup in Russia.
"Oscar's contract expired after the game against Switzerland. The decision not to extend it has been coordinated with the Executive Committee. I want to thank the coach for all the efforts," FEDEFUTBOL President Rodolfo Villalobos said as quoted by the federation on its website.
© REUTERS / Max RossiSoccer Football - World Cup - Group E - Brazil vs Costa Rica - Saint Petersburg Stadium, Saint Petersburg, Russia - June 22, 2018 Brazil's Neymar scores their second goal
Soccer Football - World Cup - Group E - Brazil vs Costa Rica - Saint Petersburg Stadium, Saint Petersburg, Russia - June 22, 2018 Brazil's Neymar scores their second goal
© REUTERS / Max Rossi
Villalobos added that the FEDEFUTBOL would try to name a new head coach by September, but would not set a deadline in order to make a deliberate decision.
Costa Rica finished bottom of Group E with one point, losing 1-0 to Serbia and 2-0 to Brazil and ending their final group-stage game in a 2-2 draw with Switzerland.
The 2018 FIFA World Cup kicked off on June 14 and will continue until July 15, with the matches being played in 11 cities across Russia.