here's how you can solve this problem (see image)
There's an option in Maya (this button in image) where you can toggle the "history mode" off. So it creates the Cube, etc. and stores no History.
Just unclick that red cross over that button and there you go
press any key - d'oh where's the any key?