Open topic with navigation

# Delete and Restore Documents by Document ID

The `DREDELETEDOC` index action instructs the HPE 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 HPE DIH instead of to an IDOL server, note:

- `DIHhost` is the IP address (or name) of the machine on which the HPE DIH is installed, and `IndexPort` is the number of the port that you use to send index actions to the HPE DIH.
- This action deletes all documents with the specified IDs (or with IDs in the specified range) from all child IDOL Servers of the HPE 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 HPE 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 HPE DIH instead of to an IDOL Server, note:

- `DIHhost` is the IP address (or name) of the machine on which the HPE DIH is installed, and `IndexPort` is the number of the port that you use to send index actions to the HPE 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 HPE DIH).

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm