> For the complete documentation index, see [llms.txt](https://docs.seemoredata.io/external-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seemoredata.io/external-docs/fundamentals/our-features/waste-reduction/orphan-tables.md).

# Orphan Tables

## Overview

Orphan Tables are tables or views in your Snowflake environment that have **no upstream or downstream pipeline connections** and have received **zero queries** over the configured analysis window.\
They represent storage cost with no business value — dropping them frees space and reduces clutter.

{% hint style="info" %}
**Required role to configure usage exclusions:** [Editor](/external-docs/fundamentals/settings/user-roles.md) or higher.

Users with lower roles can view insights and mark them as Done, but cannot change account-wide usage exclusions.
{% endhint %}

***

## How It Works

### Detection Logic

Seemore evaluates every table and view across your connected Snowflake accounts by checking two conditions:

1. **No pipeline connections** — the table does not appear as a source or destination in any tracked pipeline (dbt, Airflow, Fivetran, Rivery, etc.).
2. **Zero usage** — no SELECT, INSERT, MERGE, or other DML has been executed against the table within the analysis window.

Tables that satisfy both conditions are flagged as orphans.

***

### Analysis Window

The default analysis window is **21 days**. Seemore looks at the most recent 21-day period of query history to determine whether a table has been accessed.

***

### Cost Estimation

Each orphan table insight includes:

* **Estimated annual storage savings** based on the table's current size and your Snowflake storage rate.
* **Row count** and **storage size** to help you assess impact.

***

## Remediation

Once you confirm a table is no longer needed:

```sql
DROP TABLE <database>.<schema>.<table>;
```

You can also mark the insight as **Done** in Seemore after remediation. If the table reappears in query history, the insight will not be regenerated.

***

## Configuration

| Parameter       | Default | Description                                    |
| --------------- | ------- | ---------------------------------------------- |
| Analysis window | 21 days | How far back Seemore looks for query activity. |

{% hint style="info" %}
If you have configured **Exclude Users from Usage**, excluded users' queries are ignored when determining whether a table has usage. This means tables accessed only by service accounts or bots will still be flagged as orphans.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.seemoredata.io/external-docs/fundamentals/our-features/waste-reduction/orphan-tables.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
