def remove_index(self, index):
index_rm, single = convert_key_to_index(force_list(self.indices.keys()), index)<EOL>if single:<EOL><INDENT>index_rm = [index_rm]<EOL><DEDENT>index_new = [i for i in range(len(self.indices)) if i not in index_rm]<EOL>if not index_new: <EOL><INDENT>self.clear(True)<EOL>return<EOL><DEDENT>names = mget_list(force_list(self.indices.keys()), index_new)<EOL>items = [mget_list(i, index_new) for i in self.items()]<EOL>self.clear(True)<EOL>_MI_init(self, items, names)<EOL>
remove one or more indices