delete codes for flag