Well, it comes to me to bring up Malazan again. And Malazan brings us Dragnipur, the sword of Anomander Rake. Dragnipur imprisons anything it hits inside a parallel dimension, chaining the being to a giant wagon that tows the gateway to the realm of Darkness away from the mouth of Chaos. It has worked on elder and younger gods, completely immortal killing machines, even its own creator. Hell, and even Rake himself in the end.
It's not a simple ddump either, as beings who can walk dimensions like I walk into a pub are stone cold stuck there for hundreds of thousands of years with zero hope of escape.