You can update a dataset's default table expiration time by:
-
Using the GCP Console or the classic BigQuery web UI
-
Using the bq update CLI command
-
Calling the datasets.patch API method
-
Using the client libraries
To Update a dataset using console:
-
In the Resources pane, select your dataset.
-
In the Details page, click the pencil icon next to Dataset info to edit the expiration.
-
In the Dataset info dialog, in the Default table expiration section, enter a value for Number of days after table creation.
-
Click Save.