clean old data in elasticsearch

1. programmed in bash by zerd & dongfang
2. reprogrammed in ruby by dongfang