Hi,
There are extensions to do it - as I've read here on the forums -.
Other option, is to use cCleaner and launch it after exit from Opera.
Windows 10 (x64) | Anniversary Update
Opera Stable · Beta · Developer
Opera Test profile | Opera Reset / Back up Linux · Mac · Win