Open topic with navigation

# Remove Clips from a Database

You can remove audio clips that are already indexed in a database.

To remove an audio clip from an AFP database

- Send an `AddTask` action to HPE IDOL Speech Server, and set the following parameters:

  `Type` | The task name. Set to `AfpRemoveTrack`.
  `Tag` | The name to return in the results if the clip is identified in the audio.

  To remove the clip from a database that is defined in the HPE IDOL Speech Server tasks configuration file, you must set the `AfpDb` parameter. If the database is not defined, set both the `Pack` and `PackDir` parameters instead.

  `AfpDb` | The name of a database that is defined in the tasks configuration file.
  `Pack` | The name of a database that is not defined in the tasks configuration file.
  `PackDir` | The path to the directory that contains the database files.

For example:

    http://localhost:13000/action=AddTask&Type=AfpRemoveTrack&Tag=MyCompanyJingle&Pack=Adverts&PackDir=C:\resources

This action uses port `13000` to instruct HPE IDOL Speech Server, which is located on the local machine, to remove the audio clip with the tag `MyCompanyJingle` from the `Adverts` database.

This action returns a token. You can use the token to check the task status. See Check the Status of a Task.

After you add and remove tracks to modify an AFP database, HPE recommends that you optimize the internal indexing of the database (see Optimize a Database). Before you optimize the database, any tracks that you have deleted using the `AfpRemoveTrack` task are labeled for deletion, but still take up indexing space internally. To remove these files permanently, you must run the optimization task.

© 2013-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