sudo snap remove atom
Here is what the above code is Doing:
1. We’re using the snap command to remove the atom package.
2. We’re using the –classic flag to tell snap that we want to remove the classic version of the package.
3. We’re using the –purge flag to tell snap to remove the package’s data as well.