Hi,
I've recently looked into using the INFORMATION_SCHEMA.TABLE_SCHEMA metadata to analyse storage costs ahead of the incoming price rises for BigQuery.
Running the following query:
Hi @wcollinscw,
Welcome back to Google Cloud Community.
Here are some possible reasons for what you are experiencing.
To access and delete these tables, you can use the bq rm command in the Cloud SDK. This command can be used to delete tables that are not visible in the UI or via a bq show command. You will need to provide the full table path, including the project ID, dataset name (table_schema), and table name.
When a table is deleted, there could be some time before the deleted field is set to true. BigQuery sets this column to signal that a table has been deleted and can now be removed without risk. There might be a lag in setting this column, which would result in the deleted tables still showing up in the metadata.
BigQuery's INFORMATION_SCHEMA.TABLE_STORAGE view offers information on how much storage your project's tables are using. It's possible that the view is returning metadata about removed tables that are still being used for storage.
Hi @Aris_O
Thanks for your reply.
I've just tried to run some bq rm commands on tables which:
... and I get a similar not found error when trying the remove commands.
As mentioned before, I have the BigQuery Admin role on the project.
These tables and datasets were deleted months ago.
Anything else you can recommend trying?
Thanks
Same issue here cannot remove dataset/tables not visible in UI/bq command but visible in TABLE_STORAGE
Hi @Aris_O
Do we have Information_schema.table_storage table at Dataset level? Like below