You can do it using this code:
Where do I put this and how do I apply it. I have never seen anything like this and I'm in the New Custom Command and ????
No, you need to go to Tools - Action Wizard and then create a new Action.
Open the first command and then click on Specify Settings. Paste the code I provided above into the window that opens and click OK.
Make sure to un-tick the "Prompt User" check-box underneath it.
Now save your Action and you can run it from the Action Wizard by clicking it. Select which files/folders to process and click on Start.
Be aware that this process is NOT reversible, so make sure you have a backup of your files before running it, just in case of any problems.
PS. Use this code, actually, or you'll get an error message for files with just one page:
if (this.numPages>1) this.deletePages(this.numPages-1);