Replace REPO_KEEP_OLD with REPO_DELETE_OLD