I found a tool to repair import table here, but how are PE executable without import table built in the first place in c/c++?
To strip imports from existing executable module, you should parse it's imports directory to get its imports, then generate and add a code to get those imports, then remove imports directory.