}
       mr->PoolId = pr.PoolId;
       db_list_media_records(ua->jcr, ua->db, mr, prtit, ua, HORZ_LIST);
-      if (!get_cmd(ua, _("Enter MediaId or Volume name: "))) {
+      if (!get_cmd(ua, _("Enter *MediaId or Volume name: "))) {
          return 0;
       }
-      if (is_a_number(ua->cmd)) {
-         mr->MediaId = str_to_int64(ua->cmd);
+      if (ua->cmd[0] == '*' && is_a_number(ua->cmd+1)) {
+         mr->MediaId = str_to_int64(ua->cmd+1);
       } else {
          bstrncpy(mr->VolumeName, ua->cmd, sizeof(mr->VolumeName));
       }
 
 
 General:
 07Mar09
+kes  When deleting a Volume by MediaId require the Id to be
+     prefixed by a * to avoid confusing with an integer volume
+     name.
 kes  Prevent bls from printing binary data when a plugin stream
      encountered. This fixes bug #1238
 kes  Prepare to add JS_Warnings termination status.