docs: @RequestMapping(value = "/entity/{entityType}/{entityId}", method = RequestMethod.DELETE)
      public void deleteEntity(
              @PathVariable("entityType") String entityType,
              @PathVariable("entityId") String entityId,
              HttpServletRequest request,
              HttpServletResponse response)
              throws IOException {
  
          final IPerson person = personManager.getPerson(request);
          final EntityIdentifier ei = person.getEntityIdentifier();
          final IAuthorizationPrincipal ap =
                  AuthorizationServiceFacade.instance().newPrincipal(ei.getKey(), ei.getType());
  
          if (!ap.hasPermission(IPermission.PORTAL_SYSTEM, IPermission.DELETE_ACTIVITY, entityType)) {
              response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
              return;
          }
  
          // get the task associated with exporting this entity type
          portalDataHandlerService.deleteData(entityType, entityId);
  
          response.setStatus(HttpServletResponse.SC_NO_CONTENT);
      }