Distributed Index Handler 25.1
Distributed Index Handler Help

# Delete and Restore Documents by Document ID

The DREDELETEDOC index action instructs the DIH to delete one or more documents—specified by document ID—from the child Content components. You can also send the DREUNDELETEDOC index action to restore previously deleted documents.

Use the following action syntax for `DREDELETEDOC`:

    http://DIHhost:IndexPort/DREDELETEDOC?Docs=DocumentIDs

When you send this action to the DIH instead of to Content, note:

- `DIHhost` is the IP address (or name) of the machine on which the DIH is installed, and `IndexPort` is the number of the port that you use to send index actions to the DIH.
- This action deletes all documents with the specified IDs (or with IDs in the specified range) from all child Content components of the DIH.

NOTE: Because dissimilar documents in different databases can have the same document ID, using document IDs with this action can have unintended consequences.

After you send a DREDELETEDOC index action to the DIH, you can restore some or all of the deleted documents to their Content databases by sending a DREUNDELETEDOC action. Use the following action syntax for DREUNDELETEDOC:

    http://DIHhost:IndexPort/DREUNDELETEDOC?Docs=DocumentIDs

You can specify the same set of IDs that you used with DREDELETEDOC, or a subset. This index action cannot restore documents if you have run a compact operation (DRECOMPACT) after running DREDELETEDOC.

When you send this action to the DIH instead of to Content, note:

- `DIHhost` is the IP address (or name) of the machine on which the DIH is installed, and `IndexPort` is the number of the port that you use to send index actions to the DIH.
- This action restores all documents with the specified IDs (or with IDs in the specified range) to their Content components (child servers of the DIH).

Copyright 2024 Open Text
Version 25.1 | Last updated January 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Distributed Index Handler 25.1

Topic Title: Delete and Restore Documents by Document ID