alter the removal to match the new path pattern