After just two years, Warner Bros. is using the dark arts of copyright law to shut down a South Jersey town's Harry Potter-themed festival.

The event, which launched in 2017 as the Pitman Potter Festival, became the Pitman-Festival-That-Must-Not-Be-Named this year, dodging the name of the beloved young wizard and picking up a play on words referencing his foe Voldemort. But that clever quip wasn't enough to satisfy Warner Bros.

The Pitman Chamber of Commerce said in a statement it was contacted shortly before the Oct. 20 event, at which point it learned "enforcement of [Warner Bros.] copyrights and trademarks would be much stricter than we anticipated."

Because the town had made adjustments attempting to distance itself from the name, the entertainment giant allowed them to host the festival -- under the condition Pitman shut it down in 2019, the statement said.

"It is with deepest regrets that there will be no future Pitman Potter Festivals," the chamber said.

Photos of the festival on the Chamber of Commerce's Facebook show signs for a "Leaky Cauldron," a popular pub in the series, flags representing the Hogwarts houses, people playing Quidditch and dozens dressed clearly as the franchise's characters.

A similar event ran for several years in Philadelphia's Chestnut Hill neighborhood, but changed its name this year to The Witches and Wizards festival, after Warner Bros. sent a cease-and-desist letter to organizers. At the height of its popularity, that event drew some 50,000 eager Muggles to the upscale neighborhood's business district for butterbeers and a glimpse into the Wizarding World.

In New Jersey, Pitman isn't the only town inspired by the magic. Newton ran a similar event last November, and is hosting WizardCon this Saturday. The Greater Newton Chamber of Commerce could not be reached for comment on its own festival and its relationship to the Harry Potter series Wednesday.

A spokesperson for Warner Bros. Pictures did not immediately provide comment on the festival's cancellation Wednesday.

"It is a rare gift as an adult to be given the chance to turn a fantasy world into a reality. Although the magic of Pitman took the form of the Pitman Potter Festival in 2017 & 2018, those of us who live here know what a magical community Pitman is year-round," the Pitman Chamber of Commerce statement said.

"To you, our fans, it has been one of our greatest joys during these last two years sharing our love of Harry Potter and Pitman with all of you. We will treasure these memories - ALWAYS."