code: def delete(self, force=True, pid=None):
          
          pid = pid or self.pid
  
          if self['_deposit'].get('pid'):
              raise PIDInvalidAction()
          if pid:
              pid.delete()
          return super(Deposit, self).delete(force=force)
docs: Delete deposit.
  
          Status required: ``'draft'``.
  
          :param force: Force deposit delete.  (Default: ``True``)
          :param pid: Force pid object.  (Default: ``None``)
          :returns: A new Deposit object.