Delete scheduled tasks for Search
Use SearchService administrative commands to delete scheduled task definitions from the Home page database.
Before starting
To use SearchService administrative commands, use the wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.
Procedure
To delete a scheduled task definition from the Home page database...
- From the dmgr host:
cd $DMGR_PROFILE/bin
./wsadmin.sh -jython
execfile("searchAdmin.py")
If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, pick the node where the file is stored.
- Use the following command to delete scheduled task definitions in the Home page database.
SearchService.deleteTask(String taskName)
SearchService.deleteTask("profilesIndexingTask")
- To refresh the Home page database and purge it of information related to the deleted task, use the following command:
SearchService.refreshTasks()
Parent topic
Configure scheduled tasks
Related tasks
Listing scheduled tasksRelated reference
SearchService commands
});