I am personally making my own solution for that kind of task. Using REST is giving you a lot of options. First of all you need to define what is a "Unused space" and then build a "script" based on this. Few examples - https://developer.atlassian.com/confdev/confluence-rest-api/confluence-rest-api-examples
If you don't want to play around with "scripts" there is always an option to use a plugin for example Archiving Plugin for Confluence - https://marketplace.atlassian.com/plugins/com.midori.confluence.plugin.archiving
It depends do you want to pay for it or spend some time and build your own solution.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot