code: public ServiceCall<Void> deleteCorpus(DeleteCorpusOptions deleteCorpusOptions) {
      Validator.notNull(deleteCorpusOptions, "deleteCorpusOptions cannot be null");
      String[] pathSegments = { "v1/customizations", "corpora" };
      String[] pathParameters = { deleteCorpusOptions.customizationId(), deleteCorpusOptions.corpusName() };
      RequestBuilder builder = RequestBuilder.delete(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments,
          pathParameters));
      Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("speech_to_text", "v1", "deleteCorpus");
      for (Entry<String, String> header : sdkHeaders.entrySet()) {
        builder.header(header.getKey(), header.getValue());
      }
      builder.header("Accept", "application/json");
      return createServiceCall(builder.build(), ResponseConverterUtils.getVoid());
    }
docs: Delete a corpus.
  
  Deletes an existing corpus from a custom language model. The service removes any out-of-vocabulary (OOV) words that
  are associated with the corpus from the custom model's words resource unless they were also added by another corpus
  or grammar, or they were modified in some way with the **Add custom words** or **Add a custom word** method.
  Removing a corpus does not affect the custom model until you train the model with the **Train a custom language
  model** method. You must use credentials for the instance of the service that owns a model to delete its corpora.
  
  **See also:** [Deleting a corpus from a custom language
  model](https://cloud.ibm.com/docs/services/speech-to-text/language-corpora.html#deleteCorpus).
  
  @param deleteCorpusOptions the {@link DeleteCorpusOptions} containing the options for the call
  @return a {@link ServiceCall} with a response type of Void