7 Seeds has a rather unsuccessful, mean version of this in Unami, at the end of the Hail Of Corn arc, after the seven members of Team Summer have been determined. Unami punches Koruri and begins to berate her, also Gengoro and Ango, but doesn't hit them. His words don't actually help any of them: Gengoro's mental state only gets worse, Ango is too far out to care and Koruri becomes so enraged that she promises to kill Unami.
Afro Samurai: The title character's Sidekick Ninja Ninja does this regularly; a subversion is that Ninja Ninja is imaginary, a symptom of the title character's inner turmoil. It is in losing Ninja Ninja that Afro does, in fact, get a hold of himself. Interestingly, both are voiced by Samuel L Jackson.
Ai Kora: In the final volume, Yukari delivers one to Maeda and tells him to fight for Sakurako after he thinks he's torpedoed any chance he has with her and slips into despair.
The level-headed Mikasa is often delivering them to Eren. Given the nature of the series, quite a few characters hand these out to their comrades.
At one point, Eren headbutts Mikasa and tells her to pull it together when she begins doubting her abilities as a soldier.
In Bakuman。, this happens on two separate occasions.
In Chapter 67, Fukuda, having learned that Nakai told Aoki he would only draw for her if she became his girlfriend, barges in on him, punches him in the face and accuses him of throwing away his own career. Nakai, however, fails to get the point.
In Chapter 112, Mashiro asks Takagi to do this to him, when he realizes that Takagi was only temporarily training Shiratori, when suspecting otherwise, among other things, nearly split them up. He complains that he didn't hit him nearly as hard as he hit Ishizawa in the past, and the two end up having a (friendly) fight in the park to reconcile.
Beyblade The manga version featured at least two accounts of this trope; once where Kai punches Tyson/Takao to make him snap out of self-pity after losing a battle and another in a later book where Tyson/Takao returns the favor, punching Kai.
Black Blood Brothers: Episode 8 has Cain giving Jirou a 'get a hold of yourself' psychic-powered-gut-punch strong enough to cause him to cough up blood. Just going to show that even vampires need to get straightened out sometimes.
Claymore has Teresa criticizing Cassandra for allowing herself to be used like a puppet by Priscilla. She regains control of herself as a result, while Priscilla's other victims are killed attempting the same.
Kallen applied her Bright Seven Hit Combo◊ to Suzaku. It ends up making him re-think his past actions and gets him to agree to meet Lelouch to try and work things out. But this being Code Geass, though... Also, it needs to be stated that Kallen didn't want to slap Suzaku back into his senses or anything, but only wanted the satisfaction of beating him to a pulp out of annoyance for not being able to make up his freaking mind about whether he's a good guy or a bad guy. And did so while wearing high heels and a fancy gown.
Since Suzaku came to his senses before Kallen hit him, this could be considered an inversion of the trope.
She also applies a more traditional slap to Lelouch when he asked her for the "comfort only a woman can provide" during his own Heroic B.S.O.D.. It worked, until Rolo showed up.
Averted with Lavi, when trying to get Lenalee to snap out of it after Allen had lost his Innocence. He promptly got yelled at by everyone else for making her cry.
Deadman Wonderland: Koshio Karako slaps Nagi to try to wake him up from being berserk, complete with a "Get yourself together Nagi, you're our leader!"
Death Note: Light Yagami himself delivering one to L, while they are chained together, when the latter begins falling into depression and doubt about the Kira investigation. L, while lying on the ground, responds with a kick to the face, and the two continue to argue it out, so it's not exactly a straight example.
Yamato (Matt) executes this sort of therapy on Taichi (Tai)(minus the actual line — he just punches him) after the Digimon Kaiser (Emperor) manages to enslave Agumon. Unfortunately, this tactic confuses poor Daisuke (Davis).
Miyako (Yolei) and Hikari (Kari), later in the series, pull the trick on each other. In the same episode, even. First, when they're stranded at the Dark Ocean, Miyako (Yolei) panics because Hawkmon can't digi-evolve and Hikari (Kari) slaps her, but later admits she wishes she was open about her feelings like Miyako (Yolei) is. Later, when Hikari (Kari) has a much more serious Freak Out and almost loses it, Miyako (Yolei)(in what a lot of people consider her Crowning Moment of Awesome) slaps Hikari (Kari) and gives her a Rousing Speech to tell her she's not alone anymore.
In yet another episode, Daisuke (Davis) does the same exact thing. When a depressed, recklessly unstable Ken attempts to go into his old base and destroy it himself, he's confronted by Daisuke (Davis), who wants Ken to fight with them together. However, Ken insists that he has to make up for his past deeds by himself. When he says that it doesn't matter what happens to him as long as this happens, Daisuke (Davis) slaps him, fiercely telling him to LIVE. With Daisuke's (Davis') Rousing Speech, Ken realizes that he is needed, thus prompting their Jogress evolution (DNA Digivolve).
A third episode has Miyako (Yolei) slap Ken, for similar reasons He refused to help the Digidestined out of fear of rejection, so she went to try convince him join the group, and slapped him when he kept refusing.
Detective Conan: Takagi of all people gives Sato one of these in the anime.
In Dragon Ball Super, Kid Trunks, angry that Future Trunks is being so mopey over his loss against Goku Black, tears into him, then demands that he stand up and fight. When the older Trunks refuses, the younger Trunks responds by slugging him in the face as a Super Saiyan, getting him out of his slump.
End of Evangelion: Subverted. In order to get Shinji out of his almost catatonic depression, Misato first gives him the choice of fighting or dying. It's rather easy to guess what he chooses, but it turns out Misato ain't accepting that as an answer. He can die later if he wants, so she says. After driving to the Eva cages, she is shot at by the JSSDF, and suffers a grievous wound. She tells Shinji that he can't give up before the battle has even started, and makes him promise that he will find the answers to his inner turmoil by piloting the Evangelion. He does promise her. She kisses him, sends him on his way, and dies. It works, until it turns out that Shinji can't save the day. His Eva is sealed in Bakelite.
Shinji: But you're not me! You don't know what I have to go through! You don't understand! Misato:So fucking what if I'm not you?!
At several points throughout, Holland feels the need to beat the crap out of Renton whenever he feels particularly angsty. Often times, it doesn't really work.
It's also less because Renton is angsting and more because Holland just plain hates him. Holland getting over that roughly marks the transition of the series from a shounen love story into a ridiculously over-the-top epic.
In one amusing incident, Holland's beating up on Renton results in Holland getting slapped himself by Talho.
Subverted in the final episode. Renton is angsting, Holland yells at him, Renton complains that he couldn't save anyone and tells Holland to punch him... and Holland responds by calmly telling him to get ready, and that they're going to where Eureka is.
When Dee goes into a Heroic B.S.O.D. after the orphanage he grew up in is blow up with his mother figure still inside. Ryo gives him a good slap to bring him back to his senses.
Dee returns the favor when Ryo, emotionally shaken by an encounter with his parents' murderer, comes on to him - he backhands Ryo across the face and tells him off for tempting him to take advantage while he's in that kind of state.
Full Moon o Sagashite: Early on in the manga, Madoka tells her manager that she wants to quit and forcefully throws clothes into a suitcase, preparing for a trip to have fun, annoyed that someone hacked the results of a competition between her and Fullmoon. When her pet G-chan tries to stop her, she snaps that he's nothing more than a PR Gag... G-chan jumps into the air and slaps Madoka with his little hooves, causing Madoka to break down into tears and hugging him.
Freezing: Minor character Kyouichi breaks down when his Battle CoupleAction Girlfriend Cassie is seeming killed, and his sempai tells him to get up to find another Pandora to partner up with. Kyouichi freaks, declaring he'd never sync up with another Pandora besides Cassie, but his sempai decks him in the face, telling him that many others just lost their partners but that they have to keep fighting on.
In the Fresh Pretty Cure!movie, Cure Peach has a minor Heroic B.S.O.D. when she finds out Usapyon, a doll she had when she was younger, was part of Big Bad ToyMajin, thus part of his resentment of the human race. Cure Berry has to slap her out of it to snap her back to her senses and save the toys.
When Lt. Maria Ross slaps Ed for his deviance and recklessness. She even apologizes beforehand and afterward, since Ed is a superior officer.
Brosh tries this on Al, but only ends up hurting his hand.
Lt. Hawkeye doesn't actually slap or hit him, but rather knocks Roy Mustang down for being stupid enough to try to use spark-based alchemy in the rain. She follows this up with a few pistol shots to ward off Scar.
After hearing the news of Ling becoming Greed, Fuu slaps Lan Fan for failing to protect her prince, losing her arm and giving in to despair. His actions seem to indicate that he's angriest about the latter.
Subverted when Sousuke nearly gets them caught during a mission, Melissa Mao gives one of these speeches, concluding by saying that if he can't pull himself together then Sousuke can leave her to complete the mission on her own. To Mao's shock, that's exactly what Sousuke does.
Happens a lot in the series. In episode 35 of the TV series, Asuka gives one to Hayato when he goes hysterical over trying to destroy Asurada for making his friend Johji retire from Cyber Formula after the crash in the German race.
In Episode 9, Kurumada gives one to Miki when she freaks out over rescue efforts for Ryohei being postponed by a typhoon.
In Episode 5 of Double-One, Grayson attempts to do this to Randoll when he gets angry over Schumacher messing up his pace in races and tries to quit the final race. It doesn't work, but then he participates in that race anyway.
Kaga punches Shinjyo twice in Episode 6 of ZERO, when Shinjyo was moping on the prospect of being fired from his racing team.
Happens again in Episode 8 of the same series, Osamu delivers one to Henri when Henri tries to give up on his chance of being world champion. He did just that. Ironically, Osamu himself got slapped by his father in a flashback in an episode of the TV series before he leaves to England.
Genshiken: Saki does this to Sasahara when he's Wangsting over not having found a job yet. The fact that Tsundere Ogiue is none too happy with him either may or may not also have a influence over his getting a grip on himself.
Getter Robo: In the second episode of New Getter Robo, Hayato goes nuts and tries to turn the titular Humongous Mecha on the people that hired him. Ryoma, who was piloting the mecha with him solves the problem by jumping out of his cockpit (on the machine's waist), climbing up the front of it while it's running, breaking into Hayato's compartment on the head and punching him in the face. He sobered up considerably from that point on.
In Ghost in the Shell: Stand Alone Complex, the Major BSODs after encountering a traumatic memory in Kuze's cyberbrain. In an attempt to snap her out of it, her partner Ishikawa gives her several light whaps on the cheek. She 'comes around' a few moments later, but her BSOD was so deep it's debatable that she even felt it. Unusual in that it breaks one of those sacred tropes, but since the Major was so out of it, coupled with the fact it's possible for the cyborgs to turn off their nerve endings, it's doubtful she felt much.
Gintama: The First Captain of the Shinsengumi, Okita, is stressed out over his sister's illness, causing him to give in to his feelings of jealousy and isolation to the point that he insists on going out into battle while in a state where he would only drag the others down. In reply, his old friend and commander, Kondo, punches him hard enough to send him flying while paraphrasing the page quote by telling Okita that he, Okita, and Hijikata are good friends to the point that once one strayed from the right path, the other two would straighten him out with a few slaps. He then tells Okita that if he were to stray from the right path, then Okita should slap him back into shape.
Hajime no Ippo: Aiko Date gives a verbal one to her husband Eiji, the ex-Japanese featherweight champion, when she realises she can't bear to see him sad and frustrated after his forced retirement. Seeing he's a born boxer yet insists on working as a salaryman to provide for her and their child Yuushi, Aiko straightforwardly tells him to not sacrifice himself for them anymore and come back one last time to the ring. And he does. Boy, he DOES.
Masaki does this to Yuu when the latter is carrying out Extreme Melee Revenge on Katou. It doesn't take. Later he tries again and it does work this time.
Shin of all people does this to Yuu in chapter 101.
The iDOLM@STER: Hibiki gets slapped to get her out of her self-pity. The slapper? Her pet hamster.
Inazuma Eleven: On numerous occasions with several different characters, a character's mental block or depression is resolved by Gouenji kicking a (often flaming) soccer ball and hitting them, followed by a forceful lecture. On one occasion, Endou also accidentally does this to Kidou by kicking a ball to him and expecting him to catch it, but he was too busy sulking and lets it hit him instead.
InuYasha: The title character gives one of these to Miroku, after a hallucination makes him believe the Wind Tunnel is swallowing him up. Inuyasha seems quite disturbed by Miroku's cries of sheer terror. This is justified though, as Miroku is the kind of character who will poke at faceless corpses without blinking and take on demons the size of skyscrapers with a staff and a prayer. This scene very effectively gets across just how shaken up Miroku is.
Macross Frontier: Sheryl does this to Ranka in Episode 20. Then, Ranka does it to her in the last episode.
Subverted in the second Macross Frontiermovie; Mikhail attempts to give one to Alto, both the statement and a slap, after Sheryl and Ozma are apparently killed fleeing from Brera after the jailbreak, but Alto blocks it and asks what's wrong with being sad, but is also still determined to fight.
Hikaru also does this to Minmay in Macross: Do You Remember Love?, when she has an Heroic B.S.O.D. over finding out Hikaru has gotten together with Misa during the time Minmay herself was a hostage of the Zentraedi, refusing to sing in battle and saying that she wouldn't care if everyone else outside of her and Hikaru died, so long as the two of them can be together. That's what sets off Hikaru and triggers his Brightslap, as well as a lecture that enough people have died already and she is the only one who can put a stop to it.
Macross Delta gets in on the action in Episode 20, with Mirage delivering two pretty much simultaneously - to Freyja and Hayate, when it seems like the two of them are giving up after the events of the previous episode.
Magical Girl Lyrical Nanoha StrikerS: Signum does this to Teana while Teana is attempting to justify her self-imposed Training from Hell and complaining about her seeming inadequacy compared to the other Section 6 mages, with Signum telling Nanoha that "Brats like that will only get spoiled if you listen to them." The punch knocks Teana back a few feet, even while Signum was holding back. The SIGNUM PUNCH has since reached near-Bright levels of Memetic Mutation.
In Magi – Labyrinth of Magic spin off Sinbad no Bouken, when Rurumu politely asked Celendine/Serendine to assist with the company, the Princess not only refused rudely (despite the fact she and her attendants are living in the company grounds), she snapped at Drakon - who had suffered so much for her sake - for trying to defuse the situation. Rurumu ended up giving her an extremely gentle smack, and reminded her that she needs to think about her people's welfare instead of her own pride.
Nodoka, of all people, does this to Yue after the latter nearly has a Heroic B.S.O.D. because she thinks she betrayed Nodoka by developing a crush on Negi. It's the first time in the whole series that Nodoka has done anything violent.
Asuna applies the Bright Slap to Setsuna when she's beginning to flip out and be Wangsty over having white wings. Asuna also smacks Negi, of all people, for just giving in into Fate's terms (for his students' safety) rather than to fight for the sake the world.
In Chapter 265, Nodoka, Asakura, and ESPECIALLY Chisame to Negi (again) for just giving in to Magia Erebea. Bonus points for Chisame since she was the one who dealt the blow, in loli form, while telling him to "get a goddamn grip on yourself".
Natsuki gives one to Mai in just as she's reliving the tragedy that killed her mother and nearly did the same for her brother, for which Mai feels responsible, and tries to get Mai to remember what she's fighting for.
In the manga, Yuuichi tries to do this with Shiho when she is threatening to kill him if he doesn't go with her, and had previously brainwashed Mikoto to attack Mai, arguing that the Shiho he remembers is a better person than this, but given the brainwashing effects of the Princess Earrings, this doesn't work.
Mai-Otome: Shizuru does this to get Nina to calm down when she goes hysterical after Sergey is reported missing, then follows with a Cooldown Hug.
Mai-Otome Zwei: In the final episode with Arika unable to use the power of the Blue Sky Sapphire after she and Mashiro fell out, Mashiro tells Arika to slap her. Arika agrees, but only if Mashiro will slap her back. They do so, and then vow to do the same in the future if one of them gets stubborn.
The Mazinger saga:
Mazinger Z: Subverted. Sometimes Kouji slapped Sayaka to try to calm her down or get her out of a Heroic B.S.O.D. (it happened as soon as Episode 7). However, given that he is infamously tactless, it did not work. The only thing it accomplished was getting her mad -or madder-.
Great Mazinger: It also was subverted in the sequel. Jun tried that method with Tetsuya when he was going through his mental breakdown in the last episodes of the series. Unfortunately, it was useless and it did not manage to prevent his later Heroic B.S.O.D..
Omega-Xis does a variation of this to stop Geo's panic attack in the second season of the Mega Man Star Force anime. Being a head grafted onto Geo's arm, Mega has no hands to slap Geo with. He bites him instead.
Naruto does this to Sasuke in the Forest of Death, when Sasuke considers handing over their scroll to the Grass Ninja attacking them (who turns out to be Orochimaru), telling him that they won't necessarily be spared even if they hand over the scroll. After Naruto gets knocked out, Sasuke becomes willing to fight.
Guy tries this on Kakashi after they discover the horrible truth that Tobi is in fact Obito Uchiha. He gets over it, eventually.
In Chapter 590, Jinbei does this to Luffy in an attempt to shock him out of the Heroic B.S.O.D. which occurs due to the death of Ace, both physically restraining him and verbally reminding him that he hasn't lost everything yet.
Vivi goes overboard in the Chopper arc when she slaps the freezing Usopp awake. His head grew 3 sizes. In The Movie version, Robin uses a slapping technique with her Devil Fruit powers similar to the one she used on Spandam.
It goes back as far as the first episode. Coby has a nervous breakdown about how he'll never be able to join the Marines because of being Alvida's cabin boy. Cue Luffy giving him a much-needed conk on the noggin.
In the Dressrosa arc we're introduced to Baby 5, a woman with a pathological need to feel useful. A trait her crewmates in the Doflamingo Family have fully exploited throughout her life. When faces off against another character in the arc, Sai, he tells her he'd be happy if she just died. Though meant as a taunt, Sai is shocked when Baby 5 begins to actually try killing herself. He immediately rushes to her and slaps her to stop her. He even offers to marry her afterward, after seeing her own crew see her as just a tool (much to Baby 5's delight).
Gil slaps Oz across the face when he totally loses it and is trying to destroy everything after witnessing Alice's death in the memories from one hundred years ago.
In Retrace LXV, Oz punches Leo to try and bring him back to his senses after he's gone on a rampage with Jabberwock and is trying to destroy everything since, after Elliot's death, he's pretty much Stopped Caring. It works until Jack shows up and uses B-Rabbit's power to impale Leo.
Panzer World Galient: Subverted in episode 4 when Chururu pitches a fit and Hilmuka slaps her to calm her down and keep her quiet. Chururu's reaction was crying out louder.
Peacemaker Kurogane: After Tetsunosuke nearly gets killed by Yoshida, the man who killed his parents, a second time, he spends an episode or two holding hiding out in a closet freaking out and scratching at people who try to get him to come out. Susumu calls him out on his Wangsting and gives him a Get a Hold of Yourself, Man! speech, telling him that he's sick of Tetsunosuke's bullshit, and throws him a sword saying that if he can find the courage he should stick to his original goal of killing his parents murderer.
In Persona 4: The Animation Episode 2, Yu hauls off and punches Yosuke during the confrontation with Shadow Yosuke, at the same time as Yu's Persona Izanagi punches the giant Shadow. This may have been an accident - at least, Yu claims it was, with a hilariously deadpan "Sorry, wrong guy," - but it has the effect of snapping Yosuke out of the freakout brought on by his Shadow's Breaking Speech.
And then, in the final episode, Yu himself is on the receiving end of one, courtesy of Margaret, as she slaps him in order to snap him out of a BSOD-inducedLotus-Eater Machine.
Jessie has to do this to James on occasion. The earliest occasion was EP015 during the sinking of the St. Anne, when James tries to give up right before they reached the bottom of the ship to effect their escape.
Serena tries to talk some sense into Ash when he's wangsting in XYZ28 after his loss to Wulfric. They ended up arguing, and Ash went off for a while to cool down, but he eventually figured out Serena was right, and apologized to her at the end of the episode.
During the pre-Rikkai episodes, Ryoma suffers an humiliating defeat in an unofficial game at the hands of Sanada and has an Heroic B.S.O.D.. The one who pulls him out of it is none other than ex-Jerkass, now Jerk with a Heart of Gold Jin Akutsu, who taunts him during their impromptu game by repeatedly calling him a coward until Ryoma fights back.
Then there's the time Davide of Rokkaku and his doubles partner Bane turn this trope into a JOKE. Bane, realizing that he's heading towards a Freak Out because they're starting to lose, asks Davide to slap his face and wake him up. Davide complies even before Bane has finished his request. Then, when Bane prepares to give Davide a return wake-up slap, he's shocked to see that Davide has turned and walked off calmly before he finished recovering from his own slappage.
Princess Princess: Sayaka goes insane and threatens to jump off of a cliff when Tooru tells her he only likes her as a sister. She refuses to listen when people try to get her to stop, saying "No! If Tooru-kun doesn't choose me, I'd rather die!" Cue Tooru slapping her across the face and saying "Don't say you want to die so easily! If you kill yourself we won't be able to see each other anymore!"
RahXephon: Happens to several characters. Averted when a CO says that he can't bring himself to hit the person freaking out.
Ranma ˝: Ryōga performs a Get a Hold Of Yourself Man punch on Ranma when the latter is experiencing Heroic B.S.O.D.due to Akane's supposed death. Not only does that not work, but Ryōga ends up having to physically carry him away to safety. After that, Ryōga's attempts to snap him out of it fall flat until they find out that Akane's still alive.
Name an episode of that doesn't have someone being slapped. Forget duels, slapping is the prefered method of doing harm to someone in the show.
A particularly notable one, however, is when Wakaba slaps Utena during the latter's Heroic B.S.O.D. toward the end of the first arc. She is the absolute least likely person, barring Anthy (so far as we know at that point in the series) to hit Utena, of all people.
In Episode 4 in the animated Rosario + Vampire, Moka applies a hard slap to Tsukune's face to make him realize he himself saved her, Kurumu, and Yukari when they saved him from a trio of some really, REALLY creepy fanboys.
Rozen Maiden: Nori does this to Jun in episode 11 of the first season, as he suffers a mental breakdown caused by dream hallucinations.
Megumi pulls one of these on Kaoru when the latter freaks out and won't run for cover during Kenshin's fight with Enishi.
As the Team Mom, Megumi gave one to Kaoru much earlier, during her Heroic B.S.O.D. after Kenshin leaves to Kyoto. And during the Ganryu Takeda arc, Kaoru and Sanosuke gave speeches like that to Megumi herself: Kaoru did it to stop Megumi from running away when the Oniwabashu came for her, and Sano did it to keep her from killing herself in guilt when everything was over.
In the Kyoto Arc, Sano decks Kenshin one less to snap him out of it and more just to express his anger at having been considered a weak link and ditched.
Sano also attempts to punch Kenshin out of his Heroic B.S.O.D. in the Jinchuu arc. It fails. A quiet plea from help from Yahiko's girlfriend Tsubame is what ends up working.
The considerably more laid-back shinobi Sasuke hauls off and slaps Kasuga in episode 10 when she declares her intention to go on a Roaring Rampage of Revenge against Nobunaga and his minions.
Shaman King: None other than the calm Yoh Asakura does it and several times. He first punches Horohoro as the two are falling from a plane and later to Lyserg after his defeat in which he was yelling he needed strong friends.
Show by Rock!!: Cyan does an electric guitar variant of this when Retoree is afraid that Plasmagica might lose the battle of the bands against Criticrista and that they might be humiliated for the loss.
Subverted in the anime when Maka finds Crona hiding in a sand pit outside Death City out of guilt for betraying Shibusen by helping Medusa. Maka very nearly punches hir, but instead settles for a Cooldown Hug.
When Kid nearly quits his mission because his opponent laid out asymmetrical bombs, Patti handles this Awesomely.
Liz: "It's your turn Patti. Tell him in that special way that you have.
In Super Dimension Cavalry Southern Cross, Mary Angel slaps Jeanne Fránçaix after Francaix doesn't help shot down the enemies attacking their space ship, because it was her first time in space and her paranoid fear of dying in space gets the best of her. After the slap, she snaps out of it and starts defending the ship.
First with Kamina decking Simon and soon after throwing the arm from his Humongous Mecha at Simon's mecha. After the Time Skip we have Simon doing it to a suicidal Rossiuafter jumping through hyperspace proving that yes, even Kamina can be topped in badass delivery of the line:
Plus he'd never jumped through hyperspace before then. Which means that he instantly learned to jump through hyperspace, for the purpose of punching someone in the face.
In the second movie, in order to cut down on time, Rossiu is in some room on the Cathedral Lazengann, fixing to pull the trigger, when Kinon comes in and slaps him and gives him a teary speech instead.
And Yoko slapping the front of Simon's mech in the third episode when he was considering giving up.
Tokyo Mew Mew: This is done by Minto to Mew Ichigo, complete with "Get a hold of yourself!", to cancel the latter's Heroic B.S.O.D. caused by her boyfriend's transformation into the Big Bad, as her inability to fight causes her friends to get injured.
Transformers Cybertron: Vector Prime does this to Optimus Prime when the latter suffers a crisis of leadership.
Uchuu Senkan Yamato: In season one, Captain Okita finds it necessary to employ this maneuver upon a whining Susumu Kodai.
In Umi Monogatari, Oshima tells Kanon to stop her half-hearted attempts and face her without hesitation, galvanizing Kanon to do better.
In ...Virgin Love, when Kaoru has an anxiety attack at Ian's farewell party Daigo tries to get him to snap out of it, but eventually has to settle for knocking him right out, knowing Kaoru would hate everyone seeing him have a breakdown.
In Season 4, Yami Yugi gets one of this from Jounouchi. After causing the temporary "death" (soul loss, long story) of regular Yugi, he gets a Heroic B.S.O.D., until Jounouchi tells him to snap out of it, and punches him in the face. It works, though he still mopes about it a lot, he actually does something about it, too.
Mai gives this to Jonouchi after he goes through a Heroic B.S.O.D. as he recovers from being Marik's Brainwashed and Crazy slave and nearly killing Yugi. Cue the Armor-Piercing Slap (The English Dub of the anime cuts it out, but viewers can blatantly see her raise her hand to deliver it right before the edit).
Yu-Gi-Oh! 5D's: Jack does this to Yusei when he is blaming himself about Kiryu's death and is reluctant to fight.
Yu-Gi-Oh! ZEXAL: Kaito gives one to Yuma when he is begging him to help him go save Rei.
Keiko has a BSOD during Yusuke's fight with Toguro, imagining that the experience isn't happening, and that they are really back at school like normal. After the fight is over, she's still out, and, in a rush to wake her up, Yusuke slaps her repeatedly for half a minute, until she snaps out of it and knocks him to the floor.
Yusuke has a BSOD during his own fight with Yomi, later on, and Yomi tries to give him one of these. Well, several. It's averted, though-the beating isn't responsible for breaking him out of it.