I often find myself creating, say, a codeModule, with a given name, and then I realise that I need to change it to be a ClassModule, and I can't use the same name before deleting the file...
The same mechanism used for the "Added Files" should also be applied to modules... When you remove a file, you are given the option to delete it or not...