You cannot activate/deactivate airports that way, GSX will only recognize changes to the Scenery Library at startup.
If you use P3D4, doing deactivating/activating airports is entirely useless. It was useless in FSX from an fps point of view, but it *might* have saved you from an out of memory error in case some ram wasn't reclaimed correctly, but in P3D4 is not required anymore.