# Codefresh: resetVolume is the troubleshooting override for stuck builds

## TL;DR

When a Codefresh build hangs during restore and nothing else explains it, resetVolume via the API is the documented way to force a clean volume. Use it as a troubleshooting step, not a permanent part of your pipeline. Context: From the official Codefresh API docs.

Use this when you run into the situation in the title.

**When not to use this skill:** unrelated tasks. It covers only the procedure above.

## Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

## Details

The API exposes a resetVolume option, and the docs present it as a troubleshooting override for builds that hang during volume restore. It is not a normal pipeline setting; it is the escape hatch for when the shared volume gets into a state your builds cannot recover from on their own.
