"Magnum P.I." is no longer returning to CBS following Season 4 finale, which took place on May 6.

The action series, starring Jay Hernandez as Thomas Magnum, has been axed by the network after four seasons, according to TV Line.

"Magnum P.I." is a modern take on the famous 1980s action series of a similar aprtitle about a former Navy SEAL who returns home from Afghanistan and uses his military skills in his job as a private investigator.

The show had an average of 7.4 million weekly views in its fourth season. This figure was lower in comparison to the 7.5 million views logged during Season 3. Out of 14 dramas on CBS this TV season, "Magnum P.I." ranked No. 9 in audience rating.

Fans can recall that Hernandez was optimistic about the drama's renewal on the network in April.

"We're golden," he said at the time. "I think you could bank on that. The numbers are great, it travels well internationally…. So yeah, I think we’re in good shape."

"And you know what, they're happy with the show," he added. "They loved this season, a lot of the stories they were really digging. And the episode I directed, they loved to the extent that I’ve already been asked to direct another one next season."

Aside from Hernandez, the show also stars Perdita Weeks as Juliet Higgins, Zachary Knighton as Orville "Rick" Wright, Stephen Hill as Theodore "TC" Calvin, Tim Kang as Detective Gordon Katsumoto and Amy Hill as Teuila "Kumu" Tuileta.

Shortly after news about the series' cancellation broke out, "Magnum P.I." co-creator Peter Lenkov reacted to a tweet from a fan who wrote, "How can we help on our end? Fans are the best too. So sad @CBS made this terrible decision."

Lenkov replied, "Grateful it even happened… getting a reboot to click is hard… and this one did. Lucky for that."

Another fan expressed hope for future collaboration between Lenkov and Hernandez. In response, Lenkov tweeted, "Thanks for the kind words. Was my dream come true rebooting it."

CBS axed four other series this week, ahead of Paramount Global's presentation to advertisers in New York, which is happening next week. "United States of Al" and "B Positive" were canceled alongside "Good Sam" and "How We Roll."

GettyImages-1156250762
Jay Hernandez, Actor Getty Images