cfdf515228
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.6 KiB
1.6 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_dataset | function | py | infra | 1.0.0 | impure | def bq_delete_dataset(client: BQClient, dataset_id: str, delete_contents: bool = False) -> None | Elimina un dataset de Google BigQuery. IRREVERSIBLE. Usa client._client.delete_dataset() del SDK oficial. |
|
false | error_go_core |
|
|
None | false | python/functions/bigquery/datasets.py |
Ejemplo
from bigquery.client import bq_auth
from bigquery.datasets import bq_delete_dataset
client = bq_auth("my-project")
# Eliminar dataset vacio
bq_delete_dataset(client, "temp_dataset")
# Eliminar dataset con todas sus tablas
bq_delete_dataset(client, "temp_analytics", delete_contents=True)
Notas
IRREVERSIBLE. Todos los datos del dataset se pierden permanentemente.
Lanza google.api_core.exceptions.NotFound (404) si el dataset no existe.
Lanza google.api_core.exceptions.BadRequest (400) si el dataset contiene tablas y delete_contents=False.
Por seguridad el valor por defecto de delete_contents es False — requiere confirmacion explicita para borrar contenido.