diff --git a/hosting.module b/hosting.module
index 13666e2..45627ee 100644
--- a/hosting.module
+++ b/hosting.module
@@ -1128,10 +1128,16 @@ function hosting_context_register($nid, $name) {
       ))
       ->execute();
   }
+
   // We include the file instead of enabling the module,
   // because we do not want the overhead of having all the
   // path UI stuff on nodes.
   require_once DRUPAL_ROOT . '/modules/path/path.module';
+
+  // Delete an existing alias, could be left behind after migrating a site from this name.
+  path_delete(array('alias' => "hosting/c/$name");
+
+  // Add the new alias.
   $path = array('source' => "node/$nid", 'alias' => "hosting/c/$name");
   path_save($path);
 }
