refactor - delete where id