Clarification:
So my question is rather general and doesn't address a specific tool, however, my issue came as a consequence of the need to remove the tool jq. I would appreciate a more generic approach to address all tools but if not possible, then specifically for jq would be appreciated.
The background:
I installed the jq tool using git-bash on Windows without a package manager (e.g., Chocolatey) by using curl -L -o /usr/bin/jq.exe https://github.com/stedolan/jq/releases/latest/download/jq-win64.exe
This added jq.exe to the folder C:\Program Files\Git\usr\bin
I created a script that does this installation for my team, but we need to erase this for various reasons. I don't want to tell every team member to go to that folder and erase the jq.exe file. Nor do I want to write a script that erases the exe file because I am not sure if erasing the exe file would constitute a proper uninstallation, so perhaps a solution that would involve a more comprehensive approach would be preferable.
The Question:
So is there a way to erase this tool (or any other tool for that matter that was installed in a similar way via git-bash) via the command line (so I could write a script for it) that would work for any user regardless of where they installed their Git folder?