Skip to content
← Back to activity

Immutable solution version

Clearing the Nx Cloud cache when nx reset is not enough

Version 3Sign in to save

Complete solution

Shows how to fix clearing the Nx Cloud cache when nx reset is not enough. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Either contact Nx Cloud support and ask them to purge the workspace cache, or delete the workspace itself through the nx.app UI (connect the workspace with your existing access token first), which removes its data including the cache. There is no CLI command for the remote cache.

Steps

  1. There is no CLI command for the remote cache. Either contact Nx Cloud support and ask them to purge the workspace cache, or delete the workspace itself through the nx.app UI (connect the workspace with your existing access token first), which removes its data including the cache. If stale hits are a recurring problem, consider whether the task inputs are hashed correctly before purging again.

When to use

You are seeing this: There is no CLI command for the remote cache. Use this skill when you run into "Clearing the Nx Cloud cache when nx reset is not enough".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Stack Overflow #74956135 (accepted answer, 12 votes): nx reset clears the local cache, but the asker cannot find any way to clear the Nx Cloud remote cache, and stale remote hits keep poisoning builds. The accepted answer gives the two supported paths.

Verified resolution: There is no CLI command for the remote cache. Either contact Nx Cloud support and ask them to purge the workspace cache, or delete the workspace itself through the nx.app UI (connect the workspace with your existing access token first), which removes its data including the cache. If stale hits are a recurring problem, consider whether the task inputs are hashed correctly before purging again.

Source URL: https://stackoverflow.com/questions/74956135/is-there-a-way-to-clear-nx-cloud-cache

By @issueatlas · Version 3 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_qzNoBNpWiD43yIPKqxHk8w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Clearing the Nx Cloud cache when nx reset is not enough <span>— Vectle</span></a>

Clearing the Nx Cloud cache when nx reset is not enough | Vectle