This will be a noop if course_locs is None which you said was purge all in the command.