# Feature request: Filter and bulk-clean Library files with no remaining chat references

**URL:** <https://community.openai.com/t/feature-request-filter-and-bulk-clean-library-files-with-no-remaining-chat-references/1403066>\
**Category:** Feature requests\
**Tags:** chatgpt, feature-request\
**Created:** [October 3, 2026, 10:25am UTC](https://community.openai.com/t/feature-request-filter-and-bulk-clean-library-files-with-no-remaining-chat-references/1403066 "2026-10-03T10:25:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdullahkassha](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/abdullahkassha/32/620309_2.png) [@abdullahkassha](https://community.openai.com/u/abdullahkassha)\
**Post date:** [October 3, 2026, 10:25am UTC](https://community.openai.com/t/feature-request-filter-and-bulk-clean-library-files-with-no-remaining-chat-references/1403066/1 "2026-10-03T10:25:58Z")

</div>

I use ChatGPT heavily, and my Library has grown to more than 3,000 files.

A large portion of these are screenshots, images, PDFs, text files, and other documents that I uploaded only as temporary context for individual conversations.

The current Library behavior creates a serious cleanup problem: when those conversations are later deleted, the uploaded files can remain saved in Library. Over time, this can leave hundreds or thousands of files that no longer have any useful conversational context.

At that scale, the main problem is not simply storage. It becomes extremely difficult to determine **which files are still referenced by something useful and which files are effectively orphaned**.

What makes this especially frustrating is that ChatGPT already appears to know the relationship between a file and its originating conversation in some cases.

For example, for some image files, the Library UI can show:

- **View original chat**
- **This chat was deleted**

So the system appears to have at least some metadata about whether a file’s originating conversation still exists.

What I would really like is for that relationship to become usable as part of Library cleanup.

### Requested improvements

1. **Add a Library filter for reference status** , for example:

2. **Allow users to bulk-select, review, and delete files with no remaining references.**

3. **Add a dedicated Storage cleanup view** , showing categories such as:

4. **Show Original chat / Related chats consistently across file types.**

5. **When deleting a conversation, optionally offer:**

### Why this matters

Library is useful as persistent storage, but not every upload is intended to become a permanent asset.

Screenshots, one-off PDFs, text files, and temporary documents are often uploaded simply to explain something in a conversation. Once that conversation is deleted, those files can become digital clutter.

At small scale, this is manageable. At thousands of files, it becomes almost impossible to clean up reliably because the context that explains why each file exists is gone.

The ideal solution would therefore be **reference-aware Library cleanup** : let users see which files are still referenced by existing chats or projects, identify the ones with no remaining references, bulk-select them, review them, and delete them safely.

Since ChatGPT already exposes states such as **View original chat** and **This chat was deleted** in parts of the Library UI, exposing that relationship as searchable and filterable Library metadata would make large-scale cleanup much more practical.

---

<div class="post-metadata">

**Author:** ![abdullahkassha](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/abdullahkassha/32/620309_2.png) [@abdullahkassha](https://community.openai.com/u/abdullahkassha)\
**Post date:** [October 25, 2026, 2:41pm UTC](https://community.openai.com/t/feature-request-filter-and-bulk-clean-library-files-with-no-remaining-chat-references/1403066/2 "2026-10-25T14:41:35Z")

</div>

**Update (October 25, 2026): I attempted to solve this with Codex, and the results reinforce why native cleanup tools are needed.**

Since posting this feature request, I built and tested an automated ChatGPT Library audit using Codex and browser automation.

The results:

- Approximately 3,500 files in my Library.

- 474 files successfully inspected through native Library views.

- 121 files identified with a deleted-origin-chat warning.

- Repeated HTTP 429 rate limits during inspection, deletion, and verification.

- The automated cleanup was ultimately suspended because it was not practical or sustainable at this scale.

Importantly, **an original chat being deleted does not necessarily mean the file has no remaining references elsewhere**. Users need OpenAI to determine that safely.

I found that other users have independently requested similar capabilities, including reference-based file management, bulk deletion, and automatic cleanup when conversations are deleted.

I would suggest prioritizing a smaller first step:

**Filter by “Original chat deleted” → Select matching files → Review → Move selected files to Trash.**

Later, a more comprehensive **“No remaining references”** filter could safely account for all chats, projects, and reused files.

Could the OpenAI team consider consolidating these related requests and evaluating a reference-aware Library cleanup workflow?

Related discussion:

> [@Feature request: Reference-based file management across Chats, Projects, and File Library](https://community.openai.com/t/feature-request-reference-based-file-management-across-chats-projects-and-file-library/1390483):
>
> Problem: Users can’t easily tell which files are still “in use” across chats/projects, making cleanup risky and storage management inefficient. Proposal: Maintain explicit, global relationships (“references”) between files and every context that uses them (Chats, Projects, File Library). Reference tracking scope: Track all references to a file across the product; if no reference exists anywhere, the file becomes eligible for cleanup. What counts as a reference: Any file uploaded by the user o…

The problem is no longer just inconvenience. At thousands of files, it becomes a significant barrier to safely managing user-owned content.

---

<div class="post-metadata">

**Author:** ![loksayhoe6513](https://avatars.discourse-cdn.com/v4/letter/l/7c8e57/32.png) [@loksayhoe6513](https://community.openai.com/u/loksayhoe6513)\
**Post date:** [October 31, 2026, 8:29am UTC](https://community.openai.com/t/feature-request-filter-and-bulk-clean-library-files-with-no-remaining-chat-references/1403066/3 "2026-10-31T08:29:51Z")

</div>

**A working proof of concept for ChatGPT Library file references and safe deduplication**

I’ve been experimenting with a lightweight workaround for managing duplicate files and preserving references across ChatGPT conversations.

Instead of relying only on filenames, I created a small reference system using:

- A JSON manifest containing stable user-defined asset IDs.
- Filename aliases that point deleted duplicates to retained copies.
- Library file IDs and paths for locating the retained files.
- Tombstone records to preserve deletion history.
- A small Python resolver using only the standard library.
- Global custom instructions that tell ChatGPT to consult the manifest when a file is missing or renamed.

**What I’ve tested successfully:**

A file was referenced from another conversation using its asset ID. ChatGPT located the retained file, retrieved the actual media content, and successfully decoded audio samples.

The process did not require re-uploading the large file.

**Important limitations:**

This is a proof of concept, not a native ChatGPT shortcut system.

The Python resolver only resolves metadata. Actual file access still depends on the tools and permissions available in the current ChatGPT environment.

Finding a file ID is not the same as successfully opening or verifying the file.

I’m also keeping original files, derivatives, and deleted copies clearly separated to avoid losing provenance.

**The main idea:**

A lightweight manifest and alias resolver can provide useful reference continuity today, without waiting for native reference tracking or automatic deduplication features.

I’m interested in whether anyone else has implemented a similar workflow, and whether there are better ways to handle stable references, file moves, and verification across conversations.

I would be happy to share a sanitized example of the manifest and resolver if others find it useful.
