Yes, I wonder if there is a feature like that?
It’s not a standard feature in Confluence. But there is a very good add-on, the Archiving Plugin for Confluence:
If you have any questions about the configuration of the add-on, we would be happy to help you with that. In case of interest, just let us know and get in touch with us again and we could make you a non binding offer. Also, of course, for the purchase of the plugin.