remove useless file in dat and ruby