Examples: removeFTIndex method

This agent removes a full-text index from the current database.

import lotus.domino.*;

public class JavaAgent extends AgentBase {

  public void NotesMain() {

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

      // (Your code goes here) 
      Database db = agentContext.getCurrentDatabase();
      if (db.isFTIndexed())
      {
        db.removeFTIndex();
        System.out.println("Database index removed");
      }
      else
      {
        System.out.println("Database is not indexed");
      }

    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}