> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete dictionary entries

> Delete a batch of dictionary entries.

export const Legacy = ({title, href}) => {
  return <Note>

    This page documents an earlier version of the API client.
    For the latest version, see <a href={href}>{title}</a>.

    </Note>;
};

<Legacy title="Add or delete dictionary entries" href="/doc/libraries/sdk/methods/search/batch-dictionary-entries" />

**Required ACL:** `editSettings`

## Examples

<CodeGroup>
  ```cs C# theme={"system"}
  AlgoliaDictionary algoliaDictionary = new AlgoliaDictionary
  {
    Name = AlgoliaDictionaryType.Stopwords
  };

  // Synchronous
  dictionaryClient.DeleteDictionaryEntries(algoliaDictionary, new List<String>() { "down", "up" });

  // Asynchronous
  var deleteDictionaryResponse = dictionaryClient.DeleteDictionaryEntriesAsync(algoliaDictionary, new List<String>() { "down", "up" });
  deleteDictionaryResponse.Wait();
  ```

  ```go Go theme={"system"}
  res, err := client.DeleteDictionaryEntries(search.Stopwords, []string{"down", "up"})
  ```

  ```java Java theme={"system"}
  // Synchronous
  client.deleteDictionaryEntries(Dictionary.STOPWORDS, Arrays.asList("down", "up"));
  // Asynchronous
  client.deleteDictionaryEntriesAsync(Dictionary.STOPWORDS, Arrays.asList("down", "up"));
  ```

  ```js JavaScript theme={"system"}
  client.deleteDictionaryEntries('stopwords', ['down', 'up']);
  ```

  ```kotlin Kotlin theme={"system"}
  val objectID = ObjectID("MyObjectID")
  client.deleteDictionaryEntries(Dictionary.Stopwords, listOf(objectID))
  // or using extension function:
  client.deleteStopwordEntries(listOf(objectID))
  ```

  ```php PHP theme={"system"}
  $client->deleteDictionaryEntries(
    'stopwords',
    array('down',' up', ...)
  );
  ```

  ```python Python theme={"system"}
  client.delete_dictionary_entries(
    'stopwords',
    ['down', 'up']
  )
  ```

  ```ruby Ruby theme={"system"}
  client.delete_dictionary_entries(
    'stopwords',
    %w(down up ...)
  )
  ```

  ```scala Scala theme={"system"}
  client.execute {
    delete dictionary Stopwords objectIDs Seq("down", "up")
  }
  ```

  ```swift Swift theme={"system"}
  client.deleteDictionaryEntries(from: StopwordsDictionary.self, withObjectIDs: ["down", "up"]) { result in
    if case .success(let response) = result {
      print("Response: \(response)")
    }
  }
  ```
</CodeGroup>

## Parameters

<ParamField body="dictionary" type="string" required>
  Type of the dictionary entries you want to delete.
  Can be either `stopword`, `plural` or `compound`
</ParamField>

<ParamField body="objectIDs" type="string[]">
  IDs of dictionary entries you want to delete.
</ParamField>

<ParamField body="requestOptions" type="object">
  A mapping of request options to send along with the request.
</ParamField>

## Response

<ResponseField name="taskID" type="integer">
  The task ID used with the [`waitTask`](/doc/libraries/sdk/v1/methods/wait-task) method.
</ResponseField>

<ResponseField name="updatedAt" type="string">
  Date at which the indexing job has been created.
</ResponseField>

### Response as JSON

This section shows the JSON response returned by the API.
Each API client wraps this response in language-specific objects, so the structure may vary.
To view the response, use the `getLogs` method.
Don't rely on the order of properties—JSON objects don't preserve key order.

```jsonc JSON icon=braces theme={"system"}
{
  "updatedAt":"2013-01-18T15:33:13.556Z",
  "taskID": 678
}
```
