Would this be possible by means of sql queries?
The store table has a column
Set that to 0 and the store view is disabled.
It does not work for websites. But you can simply disable all store views from that website and you are safe.
`UPDATE store SET is_active=0 where store_id = your id here`;