code: @SuppressWarnings("WeakerAccess")
    public ApiFuture<Void> deleteAppProfileAsync(String instanceId, String appProfileId) {
      String name = NameUtil.formatAppProfileName(projectId, instanceId, appProfileId);
      DeleteAppProfileRequest request = DeleteAppProfileRequest.newBuilder().setName(name).build();
  
      return ApiFutures.transform(
          stub.deleteAppProfileCallable().futureCall(request),
          new ApiFunction<Empty, Void>() {
            @Override
            public Void apply(Empty input) {
              return null;
            }
          },
          MoreExecutors.directExecutor());
    }
docs: Asynchronously deletes the specified app profile.
  
  <p>Sample code:
  
  <pre>{@code
  ApiFuture<Void> deleteFuture = client.deleteAppProfileAsync("my-instance", "my-app-profile");
  
  deleteFuture.get();
  }</pre>