def delete(self):
if self.is_new:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>self._swimlane.request(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(self.app.id, self.id)<EOL>)<EOL>del self._swimlane.resources_cache[self]<EOL>raw = copy.deepcopy(self._raw)<EOL>raw['<STR_LIT:id>'] = None<EOL>raw['<STR_LIT>'] = True<EOL>self.__init__(self.app, raw)<EOL>
Delete record from Swimlane server

        .. versionadded:: 2.16.1

        Resets to new state, but leaves field data as-is. Saving a deleted record will create a new Swimlane record

        Raises
            ValueError: If record.is_new