Delete Output Files

IDOL Speech Server generates different types of output files (for example, diagnostics files, language model files, acoustic model files, and so on). You can delete these output files in several ways.

Use ClearTmpResults Action

You can use the ClearTmpResults action to request the deletion of all output files generated by IDOL Speech Server in the temporary directory.

To clear all temporary files

The action requests the deletion of all output files generated by IDOL Speech Server that are located in the temporary directory. Information on the number of files that were deleted and the number of files that were not deleted (because they are currently being used by running processes or shared by other tasks) is written to the server log once the request has been processed.

Use DeleteResults Action

You can also use the DeleteResults action to request the deletion of any output files, not just temporary files. You can optionally specify the following parameters:

For example:

http://localhost:13000/action=DeleteResults&TempOnly=True&Token=MTAuMS4zLjgyOjEzMDAwOkFERFRBU0s6LTEyOTk0OTU3Ng==

This example requests the deletion of all files in the temporary directory that are associated with the specified task token.

http://localhost:13000/action=DeleteResults&Task=SpeechToText

This example requests the deletion of all output files produced by SpeechToText tasks.

Information on the number of files that were deleted and the number of files that were not deleted (because they are currently being used by running processes or shared by other tasks) is written to the server log once the request has been processed.

Use DeleteResult Action Parameter with GetResults Action

When you request to view a temporary results file, you can request to delete it at the same time. To do this, include the DeleteResult action parameter in the action, and set it to True.

http://localhost:13000/action=GetResults&Token=...&DeleteResult=True

This action deletes the file that the GetResults action is accessing. For example, if the GetResults action is accessing a file that contains diagnostics information, the action deletes that file if you set DeleteResult to True.

The action returns ResultDeleted=True if the file has been deleted, and ResultDeleted=False if the file is still being used by the process.

Monitor the Status of the Output File Manager

You can use the GetOutFileStatus action to view the status of output file tracking in the server, and view information on whether the file manager is idle or processing a request, the number of queued requests, and the number of output files being tracked. For more information, see the IDOL Speech Server Reference.

Restrictions on File Deletion

In all the three methods mentioned previously, certain restrictions might prevent you from deleting a file:


_HP_HTML5_bannerTitle.htm