delete old configs. make dir when dir is not existed
wip