def clear(self, clear_indices=False):
super(MIMapping, self).clear()<EOL>if clear_indices:<EOL><INDENT>self.indices.clear()<EOL><DEDENT>else:<EOL><INDENT>for index_d in self.indices[<NUM_LIT:1>:]:<EOL><INDENT>index_d.clear()<EOL><DEDENT><DEDENT>
Remove all items. index names are removed if ``clear_indices==True``.