SafeDisk AI

Claude Code storage incident

Claude Code Windows ENOSPC Write Error

If Claude Code on Windows logs ENOSPC: no space left on device, write, do not start by deleting session history or project files. First prove which filesystem is full: the Windows profile drive, Bun root, temp folder, Claude state, or a mounted workspace path such as B:\~BUN.

AI storage deletion judgment

Find what the AI tool can delete.

Copy the read-only check first. If the output still needs judgment, leave your email and we send the free SafeDisk AI deletion trial step only when the agent cache or session state needs review.

Add command output optional

Free trial step. We reply first with a delete / confirm / protect judgment or one read-only detail we still need.

See sample result Ask AI about one file

Read-Only Evidence

Claude Code can surface storage errors from several places on Windows. The fastest safe triage is to measure each likely location without printing file contents.

PowerShell first pass

Measure drives, temp, Claude state, and Bun root.

This reads sizes and paths only. It does not upload files, read prompts, or delete anything.

Get-PSDrive -PSProvider FileSystem | Sort-Object Free | Format-Table Name,Root,Used,Free

$paths = @(
  $env:TEMP,
  $env:TMP,
  "$env:USERPROFILE\.claude",
  "$env:APPDATA\Claude",
  "$env:LOCALAPPDATA\Claude",
  "B:\~BUN"
) | Select-Object -Unique

foreach ($path in $paths) {
  if (Test-Path -LiteralPath $path) {
    $stats = Get-ChildItem -LiteralPath $path -Force -Recurse -ErrorAction SilentlyContinue |
      Measure-Object -Property Length -Sum
    [pscustomobject]@{
      Path = $path
      Files = $stats.Count
      GB = [math]::Round(($stats.Sum / 1GB), 2)
    }
  }
}

Get-ChildItem -LiteralPath $env:TEMP -Force -Recurse -ErrorAction SilentlyContinue |
  Sort-Object Length -Descending |
  Select-Object -First 40 FullName,@{Name='MB';Expression={[math]::Round($_.Length/1MB,1)}},LastWriteTime

What The Output Means

  1. Profile drive full: Downloads, caches, package stores, and app data may be the real blocker before Claude state is involved.
  2. Temp folder full: stale installers, extracted bundles, crash dumps, or agent scratch files can block new writes.
  3. Claude state large: session history, logs, and tool output need review before deletion because they may be the only recovery trail.
  4. Bun root or mounted drive full: the failing path can be outside C:, so drive-level checks must include the path shown in the error.

Do Not Delete First

Free AI deletion trial

Need a delete / confirm / protect answer for AI tool files?

Submit the form first; the command output or one-line agent storage symptom can follow. We check whether free guidance is enough before asking for the free SafeDisk AI deletion trial.

Add output optional

Start with email. Output can follow after the first reply.