@has_status<EOL><INDENT>@index(delete=True)<EOL>def delete(self, force=True, pid=None):<DEDENT>
pid = pid or self.pid<EOL>if self['<STR_LIT>'].get('<STR_LIT>'):<EOL><INDENT>raise PIDInvalidAction()<EOL><DEDENT>if pid:<EOL><INDENT>pid.delete()<EOL><DEDENT>return super(Deposit, self).delete(force=force)<EOL>
Delete deposit.

        Status required: ``'draft'``.

        :param force: Force deposit delete.  (Default: ``True``)
        :param pid: Force pid object.  (Default: ``None``)
        :returns: A new Deposit object.