@requires_rw<EOL><INDENT>def remove_pool(self, auth, spec):<DEDENT>
self._logger.debug("<STR_LIT>" % unicode(spec))<EOL>pools = self.list_pool(auth, spec)<EOL>where, params = self._expand_pool_spec(spec)<EOL>sql = "<STR_LIT>" % where<EOL>self._execute(sql, params)<EOL>audit_params = {<EOL>'<STR_LIT:username>': auth.username,<EOL>'<STR_LIT>': auth.authenticated_as,<EOL>'<STR_LIT>': auth.full_name,<EOL>'<STR_LIT>': auth.authoritative_source,<EOL>}<EOL>for p in pools:<EOL><INDENT>audit_params['<STR_LIT>'] = p['<STR_LIT:id>'],<EOL>audit_params['<STR_LIT>'] = p['<STR_LIT:name>'],<EOL>audit_params['<STR_LIT:description>'] = '<STR_LIT>' % p['<STR_LIT:name>']<EOL>sql, params = self._sql_expand_insert(audit_params)<EOL>self._execute('<STR_LIT>' % sql, params)<EOL><DEDENT>
Remove a pool.

            * `auth` [BaseAuth]
                AAA options.
            * `spec` [pool_spec]
                Specifies what pool(s) to remove.

            This is the documentation of the internal backend function. It's
            exposed over XML-RPC, please also see the XML-RPC documentation for
            :py:func:`nipap.xmlrpc.NipapXMLRPC.remove_pool` for full
            understanding.