Yes, it's possible. To where do you want to extract it, and under what name?
I want to extract it to the same folder it started in. The name should remain the same--i.e. replacing the entire document with just the last page within the folder. Does that make sense?
No, you can't do that. You can't replace a file with a file you're currently editing.
What you can do, though, is delete all the other pages of the file and then save it under the same name.
To delete all the pages but the last you can use this code:
Then just add a Save step to your Action and you're done.
Just keep in mind this process is NOT reversible. So maybe make a backup of your files before running it.