0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

BigQuery の特定データセットの table をすべて消すワンライナー

Posted at

前提

  • projectId
    • foo-project
  • datasetId
    • bar-dataset
bq ls --format prettyjson -n 10000 --project_id foo-project bar-dataset  \
|  jq -r '.[].tableReference.tableId' \
| xargs -t -I {} bq rm -f --project_id foo-project --dataset_id bar-dataset "{}"

条件指定などはご自由に

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?