I think `removeUnitOf` is the right method here (to unload a unit). `askFilesDeleted` is used when the file is not part of the project anymore.