I tried this with a yellowjacket and a screamer of a Shop Vac that has a six-foot hose. I was sure it would have suffocated from the dust inside the vacuum bag clogging its spiracles.
Next morning, the wasp (now with tattered wings) was sitting in the corner of a window. I have no idea how it made it out.