code: public void deleteUser(CmsRequestContext context, CmsUUID userId, CmsUUID replacementId) throws CmsException {
  
          CmsUser user = readUser(context, userId);
          CmsUser replacementUser = null;
          if ((replacementId != null) && !replacementId.isNullUUID()) {
              replacementUser = readUser(context, replacementId);
          }
          deleteUser(context, user, replacementUser);
      }
docs: Deletes a user, where all permissions and resources attributes of the user
  were transfered to a replacement user.<p>
  
  @param context the current request context
  @param userId the id of the user to be deleted
  @param replacementId the id of the user to be transfered
  
  @throws CmsException if operation was not successful