recover static dir before delete