code: void deleteCurrentLocale() {
  
          // there has to remain at least one content locale
          if (m_contentLocales.size() > 1) {
              String deletedLocale = m_locale;
              m_contentLocales.remove(deletedLocale);
              m_registeredEntities.remove(m_entityId);
              m_changedEntityIds.remove(m_entityId);
              m_deletedEntities.add(m_entityId);
              getValidationHandler().getValidationContext().removeEntityId(m_entityId);
              unregistereEntity(m_entityId);
              enableSave();
              String nextLocale = null;
              if (m_registeredEntities.isEmpty()) {
                  nextLocale = m_contentLocales.iterator().next();
              } else {
                  nextLocale = CmsContentDefinition.getLocaleFromId(m_registeredEntities.iterator().next());
              }
              switchLocale(nextLocale);
          }
      }
docs: Deletes the current locale.<p>