Files
fn_registry/python/functions/bigquery/bq_delete_routine.md
T
egutierrez 9f5e6791db feat: add BigQuery Python functions and BQClient type
Funciones CRUD completas para BigQuery: auth, datasets, tables, queries,
jobs, routines, load/export. Tipo BQClient como wrapper del SDK oficial.
2026-04-07 18:45:02 +02:00

1.4 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path
bq_delete_routine function py infra 1.0.0 impure def bq_delete_routine(client: BQClient, dataset_id: str, routine_id: str) -> None Elimina una routine de un dataset.
bigquery
gcp
routine
udf
delete
google-cloud
python
true error_go_core
google-cloud-bigquery
name desc
client instancia autenticada de BQClient
name desc
dataset_id nombre del dataset que contiene la routine
name desc
routine_id nombre/identificador de la routine a eliminar
None; lanza NotFound si la routine no existe false
python/functions/bigquery/routines.py

Ejemplo

from bigquery.client import bq_auth
from bigquery.routines import bq_delete_routine

client = bq_auth("my-project")
bq_delete_routine(client, "analytics", "double_value")
# La routine queda eliminada permanentemente

Notas

Lanza google.api_core.exceptions.NotFound (404) si la routine no existe. La operacion es permanente e irreversible.

Para eliminar y recrear una routine actualizada, combinar con bq_create_routine:

bq_delete_routine(client, "analytics", "double_value")
bq_create_routine(client, "analytics", "double_value", body="x * 3", ...)