anchor.diff:                          <%
                               }
                           %>
  -                        <td><a href="#" class="icon-link-nofloat" style="background-image:url(images/delete.gif);" onclick="deleteApplication('<%= appNameWithVersion%>');" title="<%= bundle.getString("carbonapps.delete.this.row")%>"><%= bundle.getString("carbonapps.delete")%></a></td>
  +                        <%
  +                            if(allowCappDelete) {
  +                        %>
  +                            <td><a href="#" class="icon-link-nofloat" style="background-image:url(images/delete.gif);" onclick="deleteApplication('<%= appNameWithVersion%>');" title="<%= bundle.getString("carbonapps.delete.this.row")%>"><%= bundle.getString("carbonapps.delete")%></a></td>
  +                        <%
  +                            }
  +                        %>
                           <td><a href="download-ajaxprocessor.jsp?cappName=<%= appNameWithVersion%>" class="icon-link-nofloat" style="background-image:url(images/download.gif);" title="<%= bundle.getString("download.capp")%>"><%= bundle.getString("download")%></a></td>
                       </tr>
                       <%
  
positive.code: <%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %>
  <%@ page import="org.wso2.carbon.application.mgt.stub.types.carbon.ApplicationMetadata" %>
  <%@ page import="java.util.ResourceBundle" %>
  <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  <%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
  
  
negative.code: 
  <%
      String backendServerURL = CarbonUIUtil.getServerURL(config.getServletContext(), session);
      Boolean allowCappDelete = false;
      ConfigurationContext configContext =
              (ConfigurationContext) config.getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);
  
      String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
  
      ArrayList<String> permissions = (ArrayList<String>) session.getAttribute(ServerConstants.USER_PERMISSIONS);
      if (permissions.contains("/permission")
          || permissions.contains("/permission/admin")
          || permissions.contains("/permission/admin/manage")
          || permissions.contains("/permission/admin/manage/capps")
          || (permissions.contains("/permission/admin/manage/capps/add")
              && permissions.contains("/permission/admin/manage/capps/list"))) {
          allowCappDelete = true;
      }
  
      String BUNDLE = "org.wso2.carbon.application.mgt.ui.i18n.Resources";
      ResourceBundle bundle = ResourceBundle.getBundle(BUNDLE, request.getLocale());
  