use of com.google.cloud.bigquery.BigQuery.DatasetDeleteOption in project java-docs-samples by GoogleCloudPlatform.
the class QuickstartSampleIT method deleteMyNewDataset.
private static final void deleteMyNewDataset() {
BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String datasetName = "my_new_dataset";
DatasetId datasetId = DatasetId.of(datasetName);
DatasetDeleteOption deleteContents = DatasetDeleteOption.deleteContents();
bigquery.delete(datasetId, deleteContents);
}
Aggregations