<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Drop schema or catalog using cascade function in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/drop-schema-or-catalog-using-cascade-function/m-p/124426#M3601</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/174132"&gt;@EjB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the given example, here is the response:&lt;/P&gt;&lt;P&gt;Will DROP SCHEMA schema_a CASCADE remove or affect tables in schema_b?&lt;/P&gt;&lt;P&gt;No, unless:&lt;/P&gt;&lt;P&gt;1. The tables in schema_a are managed tables, AND&lt;/P&gt;&lt;P&gt;2. Tables in schema_b store their data physically inside /schema_a/, or&lt;/P&gt;&lt;P&gt;3. Both schemas use a shared storage path&lt;/P&gt;&lt;P&gt;In other words, if a table in schema_b references a path like /schema_a/some_shared_data, or if both schemas store data in a shared directory (e.g., /data/project/shared/), then dropping schema_a may delete those shared files but only if the schema being dropped is managed and owns those files.&lt;/P&gt;&lt;P&gt;For external tables, dropping schema_a will not impact schema_b, even if they share the same root location. This is because dropping external tables only removes the metadata, not the actual files in the storage location.&lt;/P&gt;&lt;P&gt;Hope that helps, let me know if you need to clarify more on this. Best, Ilir&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2025 09:15:21 GMT</pubDate>
    <dc:creator>ilir_nuredini</dc:creator>
    <dc:date>2025-07-08T09:15:21Z</dc:date>
    <item>
      <title>Drop schema or catalog using cascade function</title>
      <link>https://community.databricks.com/t5/administration-architecture/drop-schema-or-catalog-using-cascade-function/m-p/124390#M3599</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;In &lt;STRONG&gt;Databricks (non-Unity Catalog)&lt;/STRONG&gt;, I have two schemas (schema_a and schema_b) that both use the &lt;STRONG&gt;same root location in&lt;/STRONG&gt;&amp;nbsp;DBFS or external storage like ADLS.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;abfss://container@storage_account.dfs.core.windows.net/data/project/schema_a&lt;/P&gt;&lt;P&gt;abfss://container@storage_account.dfs.core.windows.net/data/project/schema_b&lt;/P&gt;&lt;P&gt;now, I have dropped schema_a as below: DROP SCHEMA schema_a CASCADE;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Will this remove or affect the tables that belong to schema_b, since both schemas point to the same physical location?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also, in general, when we drop a &lt;STRONG&gt;schema or catalog using CASCADE&lt;/STRONG&gt;, does it delete &lt;STRONG&gt;only objects registered under that schema&lt;/STRONG&gt;, or could it potentially delete files or objects in the &lt;STRONG&gt;shared root directory&lt;/STRONG&gt;, impacting sibling schemas or unrelated data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 04:01:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/drop-schema-or-catalog-using-cascade-function/m-p/124390#M3599</guid>
      <dc:creator>EjB</dc:creator>
      <dc:date>2025-07-08T04:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Drop schema or catalog using cascade function</title>
      <link>https://community.databricks.com/t5/administration-architecture/drop-schema-or-catalog-using-cascade-function/m-p/124426#M3601</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/174132"&gt;@EjB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the given example, here is the response:&lt;/P&gt;&lt;P&gt;Will DROP SCHEMA schema_a CASCADE remove or affect tables in schema_b?&lt;/P&gt;&lt;P&gt;No, unless:&lt;/P&gt;&lt;P&gt;1. The tables in schema_a are managed tables, AND&lt;/P&gt;&lt;P&gt;2. Tables in schema_b store their data physically inside /schema_a/, or&lt;/P&gt;&lt;P&gt;3. Both schemas use a shared storage path&lt;/P&gt;&lt;P&gt;In other words, if a table in schema_b references a path like /schema_a/some_shared_data, or if both schemas store data in a shared directory (e.g., /data/project/shared/), then dropping schema_a may delete those shared files but only if the schema being dropped is managed and owns those files.&lt;/P&gt;&lt;P&gt;For external tables, dropping schema_a will not impact schema_b, even if they share the same root location. This is because dropping external tables only removes the metadata, not the actual files in the storage location.&lt;/P&gt;&lt;P&gt;Hope that helps, let me know if you need to clarify more on this. Best, Ilir&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 09:15:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/drop-schema-or-catalog-using-cascade-function/m-p/124426#M3601</guid>
      <dc:creator>ilir_nuredini</dc:creator>
      <dc:date>2025-07-08T09:15:21Z</dc:date>
    </item>
  </channel>
</rss>

