/**
  * Description of the Method
  *
  * @param context Description of the Parameter
  * @return Description of the Return Value
  */
 public String executeCommandDelete(ActionContext context) {
   if (!(hasPermission(context, "sales-leads-action-plans-delete"))) {
     return ("PermissionError");
   }
   Connection db = null;
   try {
     db = this.getConnection(context);
     String planWorkId = context.getRequest().getParameter("actionPlanId");
     ActionPlanWork planWork = new ActionPlanWork(db, Integer.parseInt(planWorkId));
     planWork.setBuildLinkedObject(true);
     planWork.buildPhaseWork(db);
     planWork.buildLinkedObject(db);
     planWork.delete(db);
   } catch (Exception e) {
     context.getRequest().setAttribute("Error", e);
     return ("SystemError");
   } finally {
     this.freeConnection(context, db);
   }
   return (executeCommandView(context));
 }