You may like to check with support on the flag in code. Not sure how many queues you deactivate but its simple though administration . Queues are stored into Group Objects in Salesforce.
Queue access on API How to retrieve a queue using SOQL query - Salesforce Developer Community
We want to create a weekly process to check for empty queues and disable them. This option is not a field on the group object as far as I can say.