Whats the best way of deleting files and applications [duplicate]

Solution 1:

If said software saves settings then simply removing it often do not remove the settings folder.

Instead you can use: sudo apt purge package