/**
  * Description of the Method
  *
  * @param context Description of the Parameter
  * @return Description of the Return Value
  */
 public String executeCommandDelete(ActionContext context) {
   Exception errorMessage = null;
   boolean recordDeleted = false;
   // Delete the itemId, and the folderId will be the location to return to
   String itemId = (String) context.getRequest().getParameter("id");
   String folderId = (String) context.getRequest().getParameter("folderId");
   Connection db = null;
   try {
     db = getConnection(context);
     // Load the ticket and the organization
     Ticket thisTicket = addTicket(context, db);
     int ticketId = thisTicket.getId();
     // Check access permission to organization record
     if (!isRecordAccessPermitted(context, db, thisTicket.getOrgId())) {
       return ("PermissionError");
     }
     // Load the file folder
     FileFolder thisFolder = new FileFolder(db, Integer.parseInt(itemId));
     recordDeleted = thisFolder.delete(db);
     // indexDeleteItem(context, thisFolder);
   } catch (Exception e) {
     errorMessage = e;
   } finally {
     this.freeConnection(context, db);
   }
   if (errorMessage == null) {
     if (recordDeleted) {
       return ("DeleteOK");
     } else {
       return ("DeleteERROR");
     }
   } else {
     context.getRequest().setAttribute("Error", errorMessage);
     return ("SystemError");
   }
 }