If you have written something, you can 지우다 it. You can also erase a memory.
Object you can see, you will 치우다 (snow, your room, obstacles). If you 치우다 something, the object still is there, but it is neat.
If you delete 제거하다 something, the object seizes to exist (enemy, problems, tonsils).