Examples: deleteIDOnServer method

This agent deletes the user ID file for Jimmy Yip from the Domino® Directory on AceOne.

import lotus.domino.*;

public class JavaAgent extends AgentBase {

  public void NotesMain() {

    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();

      // (Your code goes here) 
      Registration reg = session.createRegistration();
      reg.setRegistrationServer("AceOne");
      reg.deleteIDOnServer(
      "Jimmy Yip/AceHardwareNE/AceHardwareCertifier", // user name
        false); // is server ID?

    } catch(NotesException e) {
      System.out.println(e.id + " " + e.text);
      e.printStackTrace();
    }
  }
}