public function delete()
 {
     $error = false;
     if (Input::has("del-gpId")) {
         if (CRUtilities::deleteGP(Input::get("del-gpId"))) {
             return Redirect::to("admin/dashboard/gateway")->with("message", "Gateway Profile has been deleted.");
         } else {
             $error = true;
         }
     } else {
         if (Input::has("rem-crId")) {
             if (CRUtilities::deleteCR(Input::all())) {
                 return Redirect::to("admin/dashboard/gateway")->with("message", "The selected Compute Resource has been successfully removed");
             } else {
                 $error = true;
             }
         } else {
             if (Input::has("rem-srId")) {
                 if (CRUtilities::deleteSR(Input::all())) {
                     return Redirect::to("admin/dashboard/gateway")->with("message", "The selected Compute Resource has been successfully removed");
                 } else {
                     $error = true;
                 }
             } else {
                 $error = true;
             }
         }
     }
     if ($error) {
         return Redirect::to("admin/dashboard/gateway")->with("message", "An error has occurred. Please try again later or report a bug using the link in the Help menu");
     }
 }