code: public final DeleteEventsResponse deleteEvents(ProjectName projectName) {
  
      DeleteEventsRequest request =
          DeleteEventsRequest.newBuilder()
              .setProjectName(projectName == null ? null : projectName.toString())
              .build();
      return deleteEvents(request);
    }
docs: Deletes all error events of a given project.
  
  <p>Sample code:
  
  <pre><code>
  try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
  ProjectName projectName = ProjectName.of("[PROJECT]");
  DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName);
  }
  </code></pre>
  
  @param projectName [Required] The resource name of the Google Cloud Platform project. Written
  as `projects/` plus the [Google Cloud Platform project
  ID](https://support.google.com/cloud/answer/6158840). Example: `projects/my-project-123`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails