That looks as if you have (had) got two instances of CLI and possibly also of node/npm installed.
When you did
particle --version the 1.16.0 instance was found first but the
npm instance you were executing the
uninstall command with obviously rather got 1.17.0 first to remove.
What happens when you execute the uninstall twice?
Can you locate another
particle-cli folder after you uninstalled?
particle --version still work after you unbuilt 1.17.0?
You can look for