If I remove a namespace from the configuration file, will all the data in that namespace get deleted?

No, if you decide to reuse the storage device for a different namespace, you will need to either delete the file or follow one of the methods discussed here: Zeroize Multiple SSD's Simultaneously.