remove previous reg dir