code: public final void deleteSnapshot(ProjectSnapshotName snapshot) {
  
      DeleteSnapshotRequest request =
          DeleteSnapshotRequest.newBuilder()
              .setSnapshot(snapshot == null ? null : snapshot.toString())
              .build();
      deleteSnapshot(request);
    }
docs: Removes an existing snapshot. Snapshots are used in &lt;a
  href="https://cloud.google.com/pubsub/docs/replay-overview"&gt;Seek&lt;/a&gt; operations, which
  allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment
  state of messages in an existing subscription to the state captured by a
  snapshot.&lt;br&gt;&lt;br&gt; &lt;b&gt;BETA:&lt;/b&gt; This feature is part of a beta release.
  This API might be changed in backward-incompatible ways and is not recommended for production
  use. It is not subject to any SLA or deprecation policy. When the snapshot is deleted, all
  messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new
  one may be created with the same name, but the new one has no association with the old snapshot
  or its subscription, unless the same subscription is specified.
  
  <p>Sample code:
  
  <pre><code>
  try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
  ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
  subscriptionAdminClient.deleteSnapshot(snapshot);
  }
  </code></pre>
  
  @param snapshot The name of the snapshot to delete. Format is
  `projects/{project}/snapshots/{snap}`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails