<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tech-yappli</author_name>
  <author_url>https://blog.hatena.ne.jp/tech-yappli/</author_url>
  <blog_title>Yappli Tech Blog</blog_title>
  <blog_url>https://tech.yappli.io/</blog_url>
  <categories>
    <anon>dbt</anon>
    <anon>データエンジニアリング</anon>
    <anon>BigQuery</anon>
  </categories>
  <description>こんにちは！データサイエンス室（以下、DS室）の山本です（@__Y4M4MOTO__）です。 運用中のdbtプロジェクトに対して、dbt管理下にないテーブルを一括削除する仕組みを構築したので、その内容を共有します。 なぜやったのか？ どうやったのか？ 導入にあたっての工夫 cleanup.sql の修正 エラーの修正 クローンされたテーブルに対応 BigQueryビューの削除に対応 Makefileで開発環境へ実行可能に GitHub Actionsでmainブランチへマージしたときに実行するように 結び なぜやったのか？ 新規にdbtプロジェクトを作成した際に出力先のBigQueryデータセ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.yappli.io%2Fentry%2Fdbt-macro-cleanup-tables&quot; title=&quot;dbt管理下にないテーブルをdbt macroで一括削除する - Yappli Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/t/tech-yappli/20260414/20260414092857.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-17 11:00:00</published>
  <title>dbt管理下にないテーブルをdbt macroで一括削除する</title>
  <type>rich</type>
  <url>https://tech.yappli.io/entry/dbt-macro-cleanup-tables</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
