def _db_remove_prefix(self, spec, recursive = False):
if recursive:<EOL><INDENT>prefix = spec['<STR_LIT>']<EOL>del spec['<STR_LIT>']<EOL>where, params = self._expand_prefix_spec(spec)<EOL>spec['<STR_LIT>'] = prefix<EOL>params['<STR_LIT>'] = prefix<EOL>where = '<STR_LIT>' + where<EOL><DEDENT>else:<EOL><INDENT>where, params = self._expand_prefix_spec(spec)<EOL><DEDENT>sql = "<STR_LIT>" % where<EOL>self._execute(sql, params)<EOL>
Do the underlying database operations to delete a prefix