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 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 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:15000/action=AddTask&Type=AfpRemoveTrack&Tag=MyCompanyJingle&Pack=Adverts&PackDir=C:\resources

This action removes 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, Micro Focus 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.

© 2015-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus 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 swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm