@winning - Am I missing something?
I’m not seeing anything called thinkorswim, or .thinkorswim in your screenshot.
Firstly, where did you get the software from and how did you install it?
Secondly, where did you install it to both times?
You said you installed it twice. Normally, if you install via a package from your distros software repositories, if you install a second time - it just overwrites the existing installation.
If you used some other standalone installer (e.g. building and installing from source, or running an installation script), installing a package a second time will typically overwrite the original, unless you explicitly specify a different install path.
Or perhaps if you’re using something like an appimage, a flatpak, a snap, or a docker image - it may be possible to have multiple versions, or instances of a program installed side by side.
If you give us a little more detail on the background of the problem - we will be better placed to help you.
If you delete a hidden file, or directory using the
rm
command in the terminal - it will be gone. It will not show up in your file manager/gui.
If it does still appear in your file manager, you may need to hit F5 to refresh the view of the current directory.
But usually file managers will automatically update the view after files have been added/removed by another process (e.g. a terminal, or another external program).
Also, the screenshot shows the contents of roots home directory, NOT your user.
If the file manager is open to your home directory and you’ve only removed the hidden file from roots home - then the solution is to navigate to your home directory and remove the hidden file/directory from there.
Hidden files/folders typically just contain per user configuration options for installed programs. They don’t typically contain the programs themselves.
Run a program as root and it will store options/settings in dot-files in roots home directory (/root/). Run a program as a normal user and settings will be saved in dot-files in the currently logged-in users home directory (e.g. /home/yourusername/).
If you want to uninstall a program, you should run whatever uninstall method is required, according to the installation method you used to install it.
So if you installed from source via make - you’d run make uninstall. If you installed via apt - you’d use apt remove, or apt remove —purge. If you used snap, or flatpak, or some other installation method, you should uninstall using the relevant method for that type of installation.
That way, you can be sure that the program is uninstalled completely.
After uninstalling a program, if there are any leftover configs in dot files, you can safely remove them.