Archive spaces from Confluence database

I would like to clean up the spaces from Confluence that haven't been used in the last 3 months. Taking into consideration that are too many spaces that haven't been used lately (200+) , it will be difficult to archive one by one.

There is a possibility to archive the unused Confluence spaces from the database?

I managed to archive one space in Confluence using JSON RPC, but I'm still struggling to archive more than one space. From Atlassian documentation the Confluence method setSpaceStatus have parameters(String token, String spaceKey, String status).

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.