You might want to delete the require cache for this module. Otherwise you are essentially using the same required object each time, whether you null it or not.

`delete require.cache[require.resolve(_apiDir + "index")];`