Cursor CLI just installs to the ~/.local directory, there are 2 folders in the directory “bin” and “share”. If you did not have this folder previously you could just remove the whole directory “rm -R ~/.local” but you will want to check it and make sure there is nothing else there. If there is, you can just remove the cursor specific files (you can see what cursor-agent is referencing in the “~/.local/bin” folder - do “ls -l” and it will show you what it links too).
You will probably also want to update ~/.bashrc and remove the line “export PATH=“$HOME/.local/bin:$PATH”” if you didn’t have this folder before.
Also, you can delete the configuration files in ~/.cursor