@save<EOL><INDENT>@load<EOL>@logs<EOL>def remove(self, index):<DEDENT>
data = self.data<EOL>index = self._split(index)<EOL>for j, c in enumerate(index):<EOL><INDENT>i = int(c) - <NUM_LIT:1><EOL>if j + <NUM_LIT:1> == len(index):<EOL><INDENT>try:<EOL><INDENT>del data[i]<EOL><DEDENT>except IndexError:<EOL><INDENT>raise NoItemError('<STR_LIT:.>'.join(index))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>data = data[i][<NUM_LIT:4>]<EOL><DEDENT><DEDENT>
Removes specified item from the model.

        :index: Should have a form "<itemref>.<subitemref...>" (e.g. "1.1").

        :index: Item's index.