> For the complete documentation index, see [llms.txt](https://docs.sprinkledata.com/product/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinkledata.com/product/integrating-your-data/destination-warehouses/aws-athena/manage-storage-of-flow-tables.md).

# Manage storage of Flow tables

The tables created in Athena warehouse are the external tables. So whenever user drops and creates tables it creates a new directory in the s3 bucket without deleting the old directory. As a result, whenever table is recreated the number of directories keep on increasing that increases the usage of the storage capacity in the s3 bucket.&#x20;

To manage the storage for table, Sprinkle provides below option:

* When creating the table, user should explicitly define the path and then create the table.

![](/files/kIokK7dmpR9hsn4d8yqj)

* The same location that the user is mentioning in the query should be given in the flow settings Cleanup tab. Before running flow, it will check Cleanup tab if any path is provided by the user, it will drop that path and will create a new table again.&#x20;

![](/files/TONJVuNs2qP5f5mSwDYi)

* If a flow is under managed data loading, the issue would only be seen for the staging table and not for the final table so user need to follow the same procedure for staging table as done for the normal flows.&#x20;


---

# 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.sprinkledata.com/product/integrating-your-data/destination-warehouses/aws-athena/manage-storage-of-flow-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.
