delete some useless info and generate resources to deploy