issue #2905: remove sub folders except platform

Please don't merge it.
Discuss it first.