added delete and deleteMembers to code generator logic