'If self.dn exists, returns a callable that will delete it.'

def delete(self):

    def _delete():
        self.connection.delete_s(self.dn)
    if self._is_entry_present():
        action = _delete
    else:
        action = None
    return action
