@Override
  protected PortletPreferences doDeleteData(
      PortletDataContext portletDataContext,
      String portletId,
      PortletPreferences portletPreferences)
      throws Exception {

    if (portletDataContext.addPrimaryKey(AdminPortletDataHandler.class, "deleteData")) {

      return portletPreferences;
    }

    GadgetLocalServiceUtil.deleteGadgets(portletDataContext.getCompanyId());

    return portletPreferences;
  }
  @Override
  protected PortletPreferences doDeleteData(
      PortletDataContext portletDataContext,
      String portletId,
      PortletPreferences portletPreferences)
      throws Exception {

    if (portletDataContext.addPrimaryKey(CalendarPortletDataHandler.class, "deleteData")) {

      return portletPreferences;
    }

    CalEventLocalServiceUtil.deleteEvents(portletDataContext.getScopeGroupId());

    return portletPreferences;
  }