Tommy Merlyn, the best friend of Oliver Queen and the son of Malcolm Merlyn is killed at the end of Season 1 as the result of the Undertaking. His death inspires Oliver to adopt his Thou Shalt Not Kill ideology, and even has Oliver saying how he's doing this to honor his deceased friend in the opening monologue of season 2.
Moira Queen gets killed during Season 2 by Slade Wilson in a Heroic Sacrifice, out of revenge to Oliver Queen and to further crush his spirit. It's done both to show how much of a monster Slade is, as well as giving Moira a Death Equals Redemption moment after her immoral actions in Season 1.
Sara Lance is killed at the start of Season 3, as her character was meant to be a springboard for her sister, Laurel Lance, to becoming the Black Canary. However Sara was so popular that she got brought Back from the Dead and ended up as a lead role on a spin-off show.
Laurel Lance herself gets killed nearing the end of Season 4, mainly to show how overwhelmingly powerful Damien Darhk is, and out of spite for her father, Quentin Lance, betraying Darhk earlier in the season. It marks the point Darhk crosses the Moral Event Horizon, and all the characters go from wanting him captured to wanting him dead.
Babylon 5: Lieutenant Keffer, hotshot pilot, had an entire season of character development and screen time for the fans to get to know him. Then he's killed in the season finale so everyone would know the Shadows are back and ready to rumble. For fun, this was actually a Writer Revolt: The network insisted on the character.
Battlestar Galactica (2003): Skulls, Racetrack, Kat, Socinus, Crashdown, Jammer, Dualla, and even Cally are all given screen time, character development, and plot points (in some cases, entire storylines and multi-episode story arcs). And then they die just to show how shitty the situation was.
Boardwalk Empire: Plays this trope straight and hard in the second season finale when after seemingly having patched things up Nucky murders Jimmy after two seasons of him as the show's most important character besides Nucky himself.
In the fifth season, Max. They introduce him, give him strong characterization, show that he's one of the rare, unambiguously good guys, and then they kill the shit out of him. And frame Michael in the process.
In a villainous example (with a show that likes to keep around the really cool bad guys), Brennan is killed just before the season finale by another bad guy, "Dead" Larry.
Damages: Kills off two out of its five cast members before the end of the first season to establish that yes, Anyone Can Die.
Defiance: Two important characters are killed in the first season. Sukar and Kenya Rosewater.
Sukar is introduced as a father figure to Irisa and his death makes her faith stronger. Sukar's death is also a major plot point in one of the episodes.
Kenya Rosewater is shown as the proprietor of the local brothel, and was also Nolan's lover, and later becomes the Stahma's lover. In the finale, Stahma kills off Kenya to placate Stahma's husband. Kenya's death is used to demonstrate Stahma's loyalty to her husband and according to Word of God also set up major plot points in Season 2.
In the Season Two premiere, Professor Martin Stein and Ronnie Raymond merged as Firestorm fly into the eye of the singularity above central city, and forcibly separate to close it. Only Stein makes it back, Ronnie doesn't. Later in the second to last episode, Zoom kills Henry Allen in front of Barry, in a particularly cruel Yank the Dog's Chain, after spending the entire past season trying to free him from prison for a crime he didn't commit.
In Season Three, the major arc was preventing Iris from being this at the hands of Savitar. They succeed, by someone else taking her place with holographic technology: H.R. Wells.
Agent Charlie Francis. After getting through the first season relatively unharmed, being established as Olivia's Wingman and one of the major Agents in Fringe Division, and surviving a M-Preg gone horribly wrong, we all assumed that Charlie had developed Plot Armor as one of the core characters. Then the writers have him killed by a shape-shifter who steals his form, who later dies anyways.
This also happens to William Bell and Alt-Broyles.
And then to Lincoln. A funny, friendly badass who adored Fauxlivia, won the hearts of the fangirls and survived getting blown up.
Eddard Stark and Robert Baratheon are both reasonable if flawed men who establish in the first season that Anyone Can Die. Eddard is also conclusive proof that decency, honesty and Westeros don't mix very well.
A nice guy like Renly serves to demonstrate the power of a new faction introduced in the second season.
Robb is a major character in the first, second and third seasons. He rules the North and the Riverlands until he is murdered at the Red Wedding, alongside his pregnant wife, his mother, and many of his lords' bannermen, by Houses Frey and Bolton in Season 3.
Stannis is a major character in the second, third, fourth and fifth seasons, but in Season 5, he marches on Winterfell, the weather slows his progress and he and his army are smashed by Bolton forces in the ensuing battle. In the aftermath, he is found and killed by Brienne of Tarth for his role in Renly's death.
Jon Snow in Season 5. His decision to allow thousands of Free Folk safe passage through the Wall alienates many of his black brothers, culminating in a mutiny where Jon is killed. (He got better).
Roose is a major character in the fifth and sixth seasons. However, in Season 6 is he betrayed and murdered by his own son.
Blackfish is a recurring character in the third and sixth seasons but when he refuses to surrender his family home to the Freys, he is killed in a final stand when Jaime Lannister retakes the castle.
Margaery was a major character in the second, third, fourth, fifth and sixth seasons but in Season 6, she was killed when the Great Sept of Baelor was destroyed with wildfire as orchestrated by Cersei Lannister.
Rodrik Cassel's death shows that Theon is really starting to lose his shit.
Mezool and Gamel from Kamen Rider OOO are also offed, but thanks to Uva, they came back to life halfway into the show. As it turns out, Greeeds can only truly die if their conscious cores are destroyed, and soon, they get Killed Off for Real. A Double Subversion right there.
Scorpio Zodiarts from Kamen Rider Fourze gets defeated... yet still hangs around for a few more episodes before he goes back into the fray again and gets defeated by the Second Rider. Despite living through that, Virgo comes and sends him to the Dark Nebula where he/shewill never be seen again. The Switch that he uses is kept though, and is used by both the Big Bad and his second Dragon for different goals.
Phoenix from Kamen Rider Wizard gets defeated introducing the hero's Mid-Season Upgrade... then he revives. After a few more revives (he is a Phoenix, after all), he gets kicked into the sun, trapping him in an endless cycle of death and rebirth. After that, the gears of the endgame begin turning. And no, he doesn't come back save for an Alternate Universe movie... where he gets offed again.
Kamen Rider Gaimhas Ryoji Hase AKA Kamen Rider Kurokage. At first, he is introduced as yet another rival for the heroes to defeat, but is soon reduced to being part of a Goldfish Poop Gang with his friend Jounochi/Kamen Rider Gridon. But then the series has a case of Cerebus Syndrome, resulting in Hase losing his powers, irreversibly mutating into a rabid monster and then killed by one of the new Yggdrasil Riders to show this faction is a legitimate threat who'll do whatever it takes to reach their goal.
The Killing: Two back to back. Near the end of season 3, Bullet is shockingly murdered (off-screen) by the Pied Piper. The next episode, Ray Seward is executed in prison despite his innocence.
In Season One, Carter Hall/Hawkman is the first member of the main cast to bite it at the hands of Vandal Savage, and on the second episode, no less (though a later incarnation joins them temporarily as an 11th-Hour Ranger). In the second to last episode, Leonard Snart/Captain Cold stays behind to ensure the self-destruct of the Time Masters' main computer, along with all of them (after preventing Mick from doing it, who in turn had prevented Ray from doing it before).
In Season Two, the main cast manages to survive the entire run, but some of their allies and GuestStarPartyMembers do not, like Henry Heywood/Commander Steel, Doctor Mid-Nite and Rex Tyler/Hourman.
In Season Three, during the climax of Crisis on Earth-X, Martin Stein is fatally shot. Realizing that his psychic link with Jax as Firestorm will only drag them both to death, Stein drinks a drug to cut it off to save Jax's life.
Boone Carlyle receives a good deal of character development before being the first main character to die, restoring a Anyone Can Die atmosphere to the show that it had lost after the first few episodes (thanks to the weird Disney Death of Charlie) and that it has maintained ever since.
The deaths of Sayid, Jin and Sun in the final season, which happened to show the audience that The Man in Black was truly the Big Bad.
In the second episode, Pop is accidentally killed when Tone tries to shoot Chico. His death affects numerous characters in the show, and is what pushes Luke to use his powers to defend Harlem from the criminals who have been ravaging the community.
In the seventh episode, Cornell Stokes, the Big Bad of the series so far, is killed. His death becomes a Start of Darkness moment for his cousin Mariah, who becomes a villain in her own right.
NCIS: Kate Todd, made even worse by the fact that it was looking more and more unlikely since Reveille that Ari would actually kill her; he'd already almost bombed a cafe, but this showed that he wasn't going to stop until Gibbs was in mental agony.
Did this in the second episode (two-part season premiere) with the character Mike, leaving his brother Leo to take his place as the Red Ranger for the season. While Leo was obviously The Hero of the story from the beginning, such things never happen in Power Rangers.
Kendrix's death towards the middle of the season came as quite a shocking conclusion to the Power Rangers in Space crossover (caused due to the actress being diagnosed with leukemia and needing to leave for treatments). Both characters get better.
Danny Matheson in episode 11. What really hits home about his death is that the protagonists spend the first half of the season trying to rescue him and this happens right after the episode where he gets rescued. On the plus side, he saved a lot of lives as he died, and his death has inspired many younger people to join up with the rebels, such as Jason Neville in episode 13.
In the first season finale, Nora Clayton. She had spent almost the entire season working with Team Matheson in rescuing Danny and subsequently fighting the Monroe Republic. Episode 5 and episode 6 show her get stabbed non-fatally in the gut and almost die from an infection. Episode 8 expanded on her backstory along with her sister Mia Clayton. Episode 16 had her rekindling her relationship with her ex Miles...which made her death very upsetting for him.
Robin Hood: Roughly 40% of the guest stars that featured on this show, in particular Carter and Legrand.
Rome: Pompey Magnus. Of course, it wasn't a surprise to anyone who knew their history, but being killed halfway through the first season after the show had been focused entirely on the rivalry between him and Julius Caesar still makes it feel pretty abrupt.
The destruction of the USS Odyssey in Starfleet's first engagement with The Dominion also counts; by the writer's admission, it was a Galaxy-class starship in the same family as the Enterprise to give the audience the idea of what could have happened to the actual Enterprise in that situation.
An element of Fridge Brilliance kicks in when you remember that that's exactly what all the Red Shirts died for in the Original Series—the only difference is that this time the audience knows the Red Shirt in question.
Supernatural: Damn near everyone. In particular, Ash and the Roadhouse in "All Hell Breaks Loose, Part One", John Winchester in "In My Time Of Dying" (all for the Yellow-Eyed Demon), Henriksen in "Jus In Bello" (for Lilith), and Jo and Ellen in "Abandon All Hope..." (for Lucifer). Another possible example is Kubrick in "Fresh Blood", who seemed to be getting set up as another recurring antagonist, only to be killed by Gordon in his second episode. Not to mention Bela in "Time Is On My Side" (to remind us of what's about to happen to Dean) and Anna in "The Song Remains The Same" (angels can stay dead and Heaven's torture is very bad news). Then we have theImpala, which doesn't die, being a car, but does get hidden away for most of season seven after "Slash Fiction" to emphasize the Leviathan threat.
Derek Reese gets killed in the penultimate episode of the second season, just to show that the new AI isn't playing around like John Henry and Weaver were.
Charley Dixon dies the episode before Derek; they are both examples of Anyone Can Die.
Derek also subverts the trope. Due to time travel, he reappears in the next episode alive and well.
Torchwood: Captain Jack seems like this at first in Doctor Who. The Daleks drive him and his army into a corner (Not to mention they also go to the lower floors of a space station just to wipe out the humans hidden away there). Everybody's dead, and his machine gun's running out of ammo. He pulls out a pistol and fires, quickly running out of bullets. He relents, and asks what the Daleks are going to do:
The Tudors: Cardinal Wolsey's banishment from court and subsequent execution could arguable be a drawn out version of this trope. The show had taken the time to build up Wolsey and establish him as a major force in the royal court and politics of Europe and billed the actor as a member of the main cast. His downfall helped establish Henry's fickle nature and demonstrate that in Real LifeAnyone Can Die. Though he wasn't executed.
The execution of Thomas More halfway through Season 2 also applies here. More is portrayed right from the start as King Henry VIII's closest advisor and personal friend—More is practically the only character who addresses the king as "Henry" or "Harry", rather than "Your Majesty". Until the second episode of Season 2, he is Henry's Chancellor. Henry then has him beheaded a few episodes later.