What is the best way to remove members folder that are empty?

In a script, you do not have the same environment setup as in a web request. That's why "getSite()" returns "None". In my scripts, I typically use "zope.component.hooks.setSite" to define which portal should be the current "site". Another contribution in this discussion suggests, that "bin/instance" could have a parameter ("-O") to do something similar from the command line.