delete $dir