claude-code - 💡(How to fix) Fix Cowork: artifact deletion from UI leaves orphaned folder on disk

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

When deleting an artifact from the Cowork UI, the entry is removed from artifacts.json but the corresponding folder in ~/Documents/Claude/Artifacts/ is not cleaned up. This causes create_artifact to fail with:

A folder for "lp-dashboard" already exists in Documents/Claude/Artifacts. It may be from a previous deletion or another account. Choose a different id.

Error Message

  1. Try to create a new artifact with the same id → error

Root Cause

When deleting an artifact from the Cowork UI, the entry is removed from artifacts.json but the corresponding folder in ~/Documents/Claude/Artifacts/ is not cleaned up. This causes create_artifact to fail with:

A folder for "lp-dashboard" already exists in Documents/Claude/Artifacts. It may be from a previous deletion or another account. Choose a different id.

RAW_BUFFERClick to expand / collapse

Summary

When deleting an artifact from the Cowork UI, the entry is removed from artifacts.json but the corresponding folder in ~/Documents/Claude/Artifacts/ is not cleaned up. This causes create_artifact to fail with:

A folder for "lp-dashboard" already exists in Documents/Claude/Artifacts. It may be from a previous deletion or another account. Choose a different id.

Steps to reproduce

  1. Create an artifact in Cowork (e.g., id lp-dashboard)
  2. Delete it from the Cowork UI
  3. Verify the entry is gone from artifacts.json
  4. Verify ~/Documents/Claude/Artifacts/lp-dashboard/ still exists on disk
  5. Try to create a new artifact with the same id → error

Expected behavior

Deleting an artifact from the UI should also remove the folder from ~/Documents/Claude/Artifacts/.

Actual behavior

  • artifacts.json entry is removed ✅
  • ~/Documents/Claude/Artifacts/<id>/ folder persists ❌
  • Re-creating an artifact with the same id fails ❌

Environment

  • macOS (Darwin 24.6.0)
  • Claude Desktop with Cowork mode
  • Session storage: ~/Library/Application Support/Claude/local-agent-mode-sessions/
  • Artifact storage: ~/Documents/Claude/Artifacts/

Additional context

In one session, 11 artifacts were tracked in artifacts.json while 14 folders existed on disk — the 3 extra were orphans from prior UI deletions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Deleting an artifact from the UI should also remove the folder from ~/Documents/Claude/Artifacts/.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING