Batch delete BigTable tables and BigQuery datasets

Viewed 46

I searched around to find a way to Batch delete BigTable tables and BigQuery datasets (using python's library) without any luck up to now.

Is anyone aware of an efficient way to do that?

I looked into these links but nothing promising :

  1. BigQuery
  2. BigTable

Im looking for something similar as this one coming from datastore documentation:

from google.cloud import datastore

# For help authenticating your client, visit
# https://cloud.google.com/docs/authentication/getting-started
client = datastore.Client()

keys = [client.key("Task", 1), client.key("Task", 2)]
client.delete_multi(keys)

Batch delete

1 Answers

I think it's not possible natively, you have to develop your own script.

For example you can configure all the tables to delete, then there are many solutions :

Related