Since choosing not to play the game would be boring, there is usually one wish that will actually get rid of the problem. This often involves exploiting some rule that the Genie has to follow.
It usually helps if the hero doesn't succumb to the temptation of trying to benefit from the wishes and defeat the genie at the same time, but some have beaten the odds and accomplished exactly that. Usually the results are a dramatic explosion, but not always. Sometimes it's merely a Reset Button being pushed.
The most benevolent form is Freeing the Genie - this act of immense selflessness might be rewarded by turning a stunned and grateful former-Jackass Genie into a powerful friend and ally, who (depending on the system) may even be free to use their powers indiscriminately in your favor.
See also Did You Just Scam Cthulhu?, which is more about tricking superpowered beings into doing your wishes in general, and Logic Bomb, which is an equivalent trope for dealing with computers and robots.
- In Hell Teacher Nube, Miki keeps abusing the wish-granting puffballs Kesaran Pasaran for selfish and trivial reasons. When Nube and her classmates are left hanging by the side of a building by an explosion, she uses all her remaining Kesaran Pasaran to save their lives.
- They make a comeback in the manga when, upon seeing the Orochi rise to destroy humanity thanks to a Mad Scientist's portal into the supernatural realm, Hiroshi, Kyoko, Miki, Tatsuya, and Makoto join hands and use the same portal to summon a titanic, city-sized Kesaran Pasaran to pop the Orochi out of existence.
- In both cases, it's a literal wishplosion, since the collected Kesaran Pasaran (or the single, giant one) actually explode into smaller puffs that spread cheer, health, and good luck over the entire city, covering everyone with holiday joy in the first case and undoing all the damage from the second.
- In Inuyasha, Kagome basically wishes for the shikon no tama to disappear. It's granted. Word of God is that this is the only wish that the Shikon no Tama can't pervert toward evil ends.
- Puella Magi Madoka Magica: This is how the eponymous character simultaneously saves the universe, saves the Magical Girls, and becomes an omnipresent Goddess all with one logic-defying wish.
- Her wish (personally destroy every witch ever before they're born) was against the laws of the universe (since witches were an integral part of the life-cycle of a magical girl). The solution to this dilemma? Destroy the current universe and recreate it so that the wish could be fulfilled.
- It's important to note the significance of wishing to personally prevent the existence of witches. As per her wish, she appears in person before every magical girl who's about to witch out and collects their grief. After having collected this incalculable grief, she predictably overloads and is about to become Gretchen (her own witch form). But as she must abort witches with her own hands, as per her wish, Madoka simultaneously appears in a form strong enough to prevent Gretchen's existence. This is what allows her to exist as she does now.
- In the XXXenophile story "Wish Fulfillment", a djinn can only be freed if his master asks him for a wish that he wants to grant but cannot. After splitting himself into three beings to satisfy his mistress sexually and having a marathon bout of love-making, she asks him to do it again. Immediately. When he cannot, he is freed.
- Of course, this was her intention. They were in love. (Awwww!)
Jamel: Zola! You did it! YOU DID IT!!! I'm free!!! FREE!!
Zola: Does this mean you can't do it?
Jamel: Can you wait five minutes?
- Of course, this was her intention. They were in love. (Awwww!)
- Lucifer: The initial miniseries ("The Morningstar Option") revolves around a "velleity", an entity that simply grants wishes — any wishes — as a way of obtaining worship. Lucifer remarks that this will quickly and inevitably lead to humanity's self-destruction unless the velleity is destroyed. He solves this by drafting someone who (inadvertently) used the velleity's power to wish her own brother dead, and brings her to it and rips up her emotional wounds. She ends up wishing with all her heart that the velleity dies, which, due to the circumstances of being worded right in front of it and being a wish born of earnest desire, it has no choice but to fulfill. Lucifer couldn't do it himself because he can't desire strong enough to make the velleity take notice.
- Disney's Aladdin had an interesting example where the hero tricks the villain into wishing he was a genie, said villain not realizing that he would then be trapped in his own lamp. Although Jafar then becomes Sealed Evil in a Can for Aladdin: The Return of Jafar, and once freed manipulates his new "master" all he wants and uses his immense powers to get revenge on Aladdin.
- In The NeverEnding Story Part II, the hero defeats the villainess by "wishing she had a heart."... Which, since she personifies emptiness, causes her to go poof and her living crab-armor minions to explode.
- In Disney's Darby O'Gill and the Little People, King Brian of the leprechauns grants Darby three wishes. Darby's third wish is to save the life of his daughter by taking her place in death. King Brian tricks Darby into making an illegal fourth wish, which cancels the effects of the third wish and saves his life. His daughter is not harmed because she had already recovered by the time the third wish was canceled. Notable here that it's the wishgiver who gives the loophole out of kindness.
- In the 2000 remake of Bedazzled, the protagonist is granted seven wishes by a literal Deal with the Devil, and uses the first six to try to get a particular woman. His last wish, which resets the universe and keeps him from forfeiting his soul, is that she be happy even if it's not with him. The loophole is that an unselfish wish breaks the contract.
- In the original, he accidentally used all seven because he didn't realize asking for an ice cream cone had counted as a wish, particularly as that one had been accomplished by him and the Devil going down to the shop and buying one. Then the Devil just gave him his soul back, on the basis that he already had as many as he needed.
- If you read into it a certain way, the Devil is just fulfilling her role in the grand cosmic design. When Elliot ends up in jail, a stranger informs him that his soul belongs to God, not to him. Later, in the ending, this "friend" and the Devil are playing chess together, suggesting they may not exactly be enemies (said previous scenes implied that the "friend" was an angel or God). She still tries to cheat by rearranging the pieces, though.
- Done once a film, with a different human "mark" each time, in the Wishmaster series.
- In the first film, the mark wishes the accident that freed the djinn had never happened. She also wished for him to blow his brains out; he immediately complies, and she discovers he is in fact Immune to Bullets. "If it's any consolation," he adds, "That hurt like hell."
- In Wishmaster 2: Evil Never Dies, she wishes (basically) for her innocence back so that she qualifies to re-trap him. Played with initially, when the heroine tries a couple of wishes to get rid of the djinn (such as wishing there was no evil in the world), with the djinn explaining why he can't grant the wishes, forcing her to choose again.
- In Wishmaster 3: Beyond the Gates of Hell, she summons the Archangel Michael to fight him. He only ends up giving her the means to dispose of the Djinn, a sacred sword—she still has to do the job herself.
- Finally, Wishmaster 4: The Prophecy Fulfilled plays with it — she wishes she could love the djinn as he really is (thinking he's her human lawyer); this stymies him because she has to "grant" it herself, willingly. It can't stop him by itself however, until her boyfriend wishes for a way to kill him.
- Older Than Print: In the original Arabian Nights
- In one story, a man's wife gets rid of an evil genie by wishing he would straighten out a single hair. (In today's age of salons, this wouldn't work.)
- There's also the Fisherman and the Genie, where the fisherman, although he can't make a wish since he came up against a Genie so Jackass that it won't even pretend to grant wishes before it kills you, says he does not understand how such a huge genie fits in such a tiny bottle. The genie, who is naturally very proud of his magic, goes back into the bottle to show the fisherman exactly how he does it, rendering him harmless.
- A variant of this, with a ghost instead of a genie, is found in a Zen Story about a man who is plagued by the ghost of his wife. She torments him by repeating the conversations that he has with his new lady-friend, word-for-word. In short, the ghost knows everything that he knows. After following a Zen master's advice, he challenges the ghost by scooping up a handful of beans and saying, "Tell me exactly how many beans there are in my hand." The ghost vanished.
- In the novel The Wish Giver by Bill Brittain, the good guy clears up all the bad wishes by basically wishing for the wishes to revert, "with no tricks." Apparently his good-heartedness combined with saying "with no tricks" made it work.
- In Grey Knights, Raezazel, while trying to take control over one of his intended victims, claims that he can make any wish come true, and proves so. What does the target tell him?
I wish for a world where your kind cannot exist.
- The Callahan Touch by Spider Robinson has a variation. They manage to capture a cluricaune (a kind of faerie that loves alcohol and can drink it magically) in their bar, and are thinking along these lines — that after they use the first two wishes, the third has to be to get rid of the cluricaune so he won't constantly magic away all the booze. Once they've talked with him, and cracked jokes, the cluricaune is even on board with the plan, because he'd had more fun than in centuries, so it's worth it. And just as the narrator's about to do this, he realizes something, and instead says, "Nobody here wants you gone, Naggeneen. I just wish to God you'd pay for your drinks like a gentleman."
- And then has to qualify this by adding "— in real money, not fairy gold!"
- Though technically, "like a gentleman" would cover this caveat, depending on how intentionally literal the cluricaune is.
- And then has to qualify this by adding "— in real money, not fairy gold!"
- In Gödel, Escher, Bach: An Eternal Golden Braid, during the dialogue "Little Harmonic Labyrinth," Achilles obtains one Typeless Wish (that is, a wish that can be about wishes [a meta-wish], about meta-wishes, or about any-number-of-meta-wishes). He promptly wishes for the wish not to be granted. As a result, "an event — or is 'event' the word for it? — takes place which cannot be described, and hence no attempt will be made to describe it." The result is that the universe crashes, and the characters wind up somewhere totally different.
- In second half of The Wishing Season by Esther Friesner, a Jinn will be free to wreak havoc as soon as the hero uses his half-wish (he only gets half of what is stated in the wish), so he wishes for the Jinn to be free. This ends up with the Jinn being free of the spell that made him grant wishes, but married to a very nagging demoness.
- In the first part, genies are required to tell new masters that they can only have 3 wishes. Guess what happens when an inexperienced genie forgets this? He wishes for as many wishes as there are stars in the sky.
- In Larry Niven's short story "Convergent Series", a mathematician sort-of accidentally summons a demon who grants him any one wish, at which point the demon will take his soul, reappearing wherever the summoning pentagram is drawn (or anywhere at all, if there is no pentagram). The mathematician freezes time outside of himself for 24 hours, spends the first few frozen minutes redrawing the pentagram, and goes about his business trying to figure out how to save his soul. Churches and houses of worship appear as empty lots to him, keeping him from getting inside holy ground where he'd be safe, so instead he does some silly things. At the end, the demon starts moving again with the rest of time, resizing to fit inside the pentagram. Turns out the mathematician redrew it on the demon's fat stomach, trapping him in an endless loop where he keeps shrinking to reappear in the pentagram, then shrinking again because the pentagram shrank with him. The mathematician notes that this trick should keep the demon occupied long enough to find a way to fix this, somehow.
- Dutch author Tais Teng's novel De Ring van Ardek features an Artifact of Death in the form of a ring that grants its bearer wishes, but at the cost of a demon named Ardek approaching closer every time it is used until he reaps your soul. At the end, the main character's shamanistic grandmother solves the problem by wishing for Ardek to become her protector—at which point Ardek's bony left arm grapples his right to prevent him from taking her soul, trapping him in a one-person Sealed Evil in a Duel.
- In the short story "Djinn Coffee" by Aaron Alston, published in Dragon magazine, the protagonist has been put in charge of his evil boss's evil genie. He's been tricked into wishing that anything good he wishes for will happen to the boss instead and that he cannot wish harm to the boss, and the genie's own rules say that if he makes a wish without adding "In Solomon's name", he becomes the genie's slave in the City of Brass (and he's already seen this happen to the last guy who had the position). What does he do? 1) Get his boss to agree that "drowning in wealth" is a good thing, then wish for an oil slick. 2) Get his boss to agree that anything that saves him from this is good, then wish to become the genie's slave in the City of Brass.
- In "I of Newton", an episode of The Twilight Zone (1985), a physics professor is confronted with a demon who'll claim his soul if he can't find a wish he can't grant. Said demon tells the man that he's capable of doing anything, even the impossible, and he can go anywhere and is aware of all existence. The professor finally gets rid of him by putting his last wish in the form of a command: "Get lost."
- In The Twilight Zone (1959) episode "The Man in the Bottle", a genie grants a man four Monkey's Paw type wishes. The third wish is to become the ruler of a country who can't be overthrown, so the genie turns him into Hitler at the end of World War II. The man's last wish is that all of the previously granted wishes be canceled.
- In Time Gentlemen Please, the Guv is terrorised by a possibly-possessed novelty Leprechaun statue. The statue offers the Guv one wish in return for making the pub into an irish theme bar. Guv wishes the Leprechaun would do the opposite of everything he says. The implications of this statement cause the Leprechaun to blow up.
- The protagonist in Once Upon a Time in Wonderland is avoiding using her wishes for fear of this trope, even though it's her boyfriend that's the genie.
- In GrimGrimoire, Lillet Blan summons a Demon King and makes a contract with him to get a wish in exchange for her soul. First she pulls the Obfuscating Stupidity trick to get him to open-sign the contract before she states what the wish is. Her wish is for him to "Embrace God". He refuses, which counts as a contract breach and is permanently banished to Hell as punishment.Her purpose in summoning the Demon King in the first place was to fulfill the terms of an existing contract he had on the Big Bad's soul.
- At the end of Sonic and the Secret Rings, Sonic uses Erazor's own lamp to force him to revive Sharha and restore the world back to how it was before. He then uses his third and final wish to trap Erazor back inside the lamp.
- Sluggy Freelance
- In one of the Harry Potter parody stories, Torg is confronted with a djinn who grants two wishes to anyone, although it will try to screw up the wish as much as possible. For some reason, this always entails "randomly" turning the wisher into chocolate. The djinn mentions that should anyone survive the first wish, the second one will be much less twisted. Torg's solution? "Turn Torg Potter into chocolate." But that's not really his name. Even this might not have worked if the Big Bad, who had control over the genie, had not jumped at the chance and ordered the genie to do exactly as asked.
- Later several of the protagonists run into demon-genies who could steal their souls at will and don't have to grant any wishes they don't want to, but like to play games by letting them try to think of wishes that will get them out. They're outwitted by Aylee of all people, who in exchange to her soul wishes that Torg not be restrained by them in any way, which they take to mean that they won't restrain them within their own domain, but not allowed to leave. Next Zoë, acting on Aylee's instructions, pretends to try to make a wish so dreadful that they would let her go out of sheer admiration. She wishes that blood of the innocents should rain all over their house. The head demon grants this with a shrug and is about to move on. However, the soul of Torg's sentient sword, whose physical form is in the house, gains its full powers as a weapon from the blood, and Torg kills the demon with a single poke.
- A variant in Saturday Morning Breakfast Cereal here. "You used your second wish to forget all the consequences of your first wish."
- Bimble's Bucket has a downplayed example, the genie in question essentially has a pocket dimension inside his bucket with gadgets for every purpouse imaginable for the hero to use, when the Big Bad finally gets her hands on it she wishes for Power. The genie ends up being too literal minded to understand what she wants and panicks.
- Chip 'n Dale: Rescue Rangers: When Monterey Jack becomes a genie and is captured by Fat Cat, he is forced to grant wishes for the bad guys. He tricks a Mook into making a misguided wish, allowing Chip & Dale to reach the genie's lamp. They wish that none of this ever happened to reset reality.
- One The Smurfs short had a Literal Genie (who doubles as a prankster trickster), first controlled by Gargamel and then by Papa Smurf. Papa orders the "Genie Meanie" to first undo all the tricks it had performed that day, and his last command to it is to stay in its bottle until it can learn to stop being mean.
- In an old Sinbad the Sailor cartoon, a genie's last wish will determine whether he is good or evil. The villains have used up the first wish, so the hero is in a quandary. Wishing the villains dead counts as evil, so how can he stop them? He wishes that "none of this ever happened", which counts as a good wish.
- Likewise, in DuckTales (1987), an evil genie is thwarted by the villain wishing he had never found the genie's lamp, which results in it being lost underground.
- Extreme Ghostbusters presented a Logic Bomb for an evil genie, "I wish you won't grant this wish."
- The Fairly Oddparents had Timmy getting three more wishes that need to solve everything, against a malevolent genie that was thousands of years old and knew how to twist any wish into something horrible. Timmy, realizing he needed someone as conniving as Norm (the genie), wishes for a lawyer, and he made a wish in the form of a giant contract that would reverse everything that was done and couldn't possibly be read any other way.
- There's also a literal interpretation of Wishplosion, in the form of Magical Backup. If a godparent can't grant wishes to their kids, they explode into confetti.
- At the end of "Fairy Idol", Chester used his last wish to make everything be like he never found Norm's lamp.
- Earlier, Norm explained that this sort of thing is pretty by the book: every time a human finds a genie, they wish for (in order): a dumb test wish (almost always for a sandwich), a wish for a position of power, which always results in the wishmaker getting lynched by a mob, prompting them to angrily declare "I wish I never met you".
- Garfield and Friends episode "Cinderella Cat" features a genie doing a Marlon Brando impression (he's a Fairy "Godfather", get it?). Garfield wishes for lasagna, and the Godfather gets it from a vendor. Garfield wishes for money, and the genie gets it from a bank. Garfield tries to forego his last wish, but the genie insists, so... he wishes for a fairy godmother to appear, who turns out to be the genie's wife. She promptly started berating him, and they both depart, leaving Garfield to deal with this book he found...
- Danny Phantom:
- This is the way to defeat Desiree, the Wishing Ghost. When Danny originally fought her, she was too strong for him to defeat, so he made a wish that she would be imprisoned in the Fenton Thermos. He then berated himself for not realizing to do that when she first appeared.
- The second time, Danny's friend Sam, having wished that she never met Danny, which caused him to lose his powers, made another wish to undo the damage. Desiree then commented on needing to stop granting every wish she hears as Danny imprisons her again.
- Defied in an episode of Spongebob Squarepants, where Spongebob, Squidward and Patrick are granted a wish by the Flying Dutchman before he eats them. Spongebob wishes for the Dutchman to be a vegetarian. In return, the Dutchman transforms them into fruit.
- Prismo of Adventure Time, being a Benevolent Genie who is (for reasons that go unexplained) forced to operate by Jackass Genie rules, straight-out tells Jake the exact wording of the wish that will fix all the shenanigans caused by Finn's previous, ill-considered wish: "I wish that the Lich had wished for Finn and I to be returned home."