# Use a State Token with Index Actions

You can use the `StateID` and `StateMatchID` parameters to pass a state token in the `DREDELETEDOC`, `DREEXPORTIDX`, `DREEXPORTXML`, `DREEXPORTREMOTE`, and `DRECHANGEMETA` actions.

Index action | State parameters supported
--- | ---
`DREDELETEDOC` | `StateID`
`DREEXPORTIDX` | `StateMatchID`
`DREEXPORTXML` | `StateMatchID`
`DREEXPORTREMOTE` | `StateMatchID`
`DRECHANGEMETA` | `StateID`

Examples:

- Change document database. Use the `StateID` parameter to assign all 100 documents identified by state token `CTBJ1V4QO4I5-100` (as well as the indexed documents with document IDs 1 and 2) to the `archive` database:

      DRECHANGEMETA?Type=database&NewValue=archive&Docs=1+2&StateID=CTBJ1V4QO4I5-100

- Delete documents. Use the `StateID` parameter to delete the first five documents identified by state token `CTBJ1V4QO4I5-100`:

      DREDELETEDOC?StateID=CTBJ1V4QO4I5-100[0-4]

- Export documents. Use the `StateMatchID` parameter to export the second, fourth, and sixth documents identified by state token `CTBJ1V4QO4I5-100`:

      DREEXPORTXML?StateMatchID=CTBJ1V4QO4I5-100[1+3+5]

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm