code: public JSONObject clearSynonyms(boolean forwardToReplicas, RequestOptions requestOptions) throws AlgoliaException {
      return client.postRequest("/1/indexes/" + encodedIndexName + "/synonyms/clear?forwardToReplicas=" + forwardToReplicas, "", true, false, requestOptions);
    }
docs: Delete all synonym set
  
  @param forwardToReplicas Forward the operation to the replica indices
  @param requestOptions    Options to pass to this request