Distributed Index Handler 24.1

# 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 IDOL Servers. 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 an IDOL server, 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 IDOL Servers 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 IDOL Server 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 an IDOL Server, 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 IDOL Servers (child servers of the DIH).

Copyright 2023 Open Text
Version 24.1 | Last updated December 2023

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: IDOL Distributed Index Handler 24.1

Topic Title: Delete and Restore Documents by Document ID