unlink $config{'regdir'} . '/.dat' if $file eq '.dat';