I needed updating my cmake program on Ubuntu 22.04.3 version amd64, but wrongly downloaded the aarch64 version of cmake using this method (https://www.golinuxcloud.com/install-cmake-on-ubuntu/#Method-2_Install_From_Binary_File) to override the existing cmake. Not successful though. Now when I type cmake --version on Terminal, unlike before, it responses: bash: /usr/local/bin/cmake: cannot execute binary file: Exec format error
How to remove cmake from my machine, now?