 
   # Get a list of code paths containing only those paths which have beams
   # from the two versions in the release being upgraded
-  defp get_relup_code_paths(added, changed, output_dir) do
+  defp get_relup_code_paths(added, changed, removed, output_dir) do
     added_paths   = get_added_relup_code_paths(added, output_dir, [])
     changed_paths = get_changed_relup_code_paths(changed, output_dir, [], [])
-    added_paths ++ changed_paths
+    removed_paths = get_removed_relup_code_paths(removed, output_dir, [])
+    added_paths ++ changed_paths ++ removed_paths
   end
   defp get_changed_relup_code_paths([], _output_dir, v1_paths, v2_paths) do
     v2_paths ++ v1_paths

        v2_apps = extract_relfile_apps(v2_rel)
        changed = get_changed_apps(v1_apps, v2_apps)
        added   = get_added_apps(v2_apps, changed)
        case generate_appups(changed, output_dir) do
          {:error, _} = err ->
            err

              [String.to_charlist(upfrom_rel)],
              [String.to_charlist(upfrom_rel)],
              [{:outdir, String.to_charlist(rel_dir)},
               {:path, get_relup_code_paths(added, changed, removed, output_dir)},
               :silent,
               :no_warn_sasl]
            )
