def remove_namespace(self, namespace):
if namespace in self.active_ns:<EOL><INDENT>del self.active_ns[namespace]<EOL><DEDENT>if len(self.active_ns) == <NUM_LIT:0> and self.connected:<EOL><INDENT>self.kill(detach=True)<EOL><DEDENT>
This removes a Namespace object from the socket.

        This is usually called by
        :meth:`~socketio.namespace.BaseNamespace.disconnect`.