> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XtfClearAllOverlayFolders

> XtfClearAllOverlayFolders

# XtfClearAllOverlayFolders

Clears the Overlay Folder paths for all packages installed/registered on the console.

## Syntax

```cpp theme={null}
HRESULT XtfClearAllOverlayFolders(
        PCWSTR address
)   
```

### Parameters

*address*<br />Type: PCWSTR

\[in] Pointer to the address of the console.

### Return value

Type: HRESULT

A return value of S\_OK indicates the function succeeded. Any other value indicates an unexpected error occurred.

## Remarks

Resets the current overlay folder for all PFNs on the devkit. This creates the appearance that no overlay folder has ever been set for any of the PFNs.

Calling **XtfClearAllOverlayFolders** has the same effect as issuing the command line [xbapp overlayfolder /R (NDA topic)](/tools/tools-console/commandlinetools/xbapp).

Use [XTFSetOverlayFolder](/reference/tools/xtf/xtfapi/functions/xtfsetoverlayfolder-xtfapi-xbox-windows-m) to set or clear an overlay folder. Use [XtfGetOverlayFolder](/reference/tools/xtf/xtfapi/functions/xtfgetoverlayfolder-xtfapi-xbox-windows-m) to retrieve the overlay folder path currently set for a package. Use [XtfClearAllOverlayFolders](/reference/tools/xtf/xtfapi/functions/xtfclearalloverlayfolders-xtfapi-xbox-windows-m) to clear all overlay folder that were previously set on the console. Use [IXtfApplicationClient::GetInstalled](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/getinstalled-ixtfapplicationclient-xtfapplication-xbox-microsoft-m) to enumerate all packages currently installed on the console.

## Requirements

**Header:** xtfapi.h

**Library:** XtfApi.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

[Debugging with Overlay Folders (NDA topic)](/build/console-features/debugging-diagnostics/debugging-with-overlay-folders)<br />Command line tool [xbapp overlayfolder (NDA topic)](/tools/tools-console/commandlinetools/xbapp)<br />[XTF Transport Errors (NDA topic)](/tools/tools-console/commandlinetools/xtf-transport-errors) [Additional Xtf APIs](/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [XtfGetOverlayFolder](/reference/tools/xtf/xtfapi/functions/xtfgetoverlayfolder-xtfapi-xbox-windows-m.md)
- [XtfSetOverlayFolder](/reference/tools/xtf/xtfapi/functions/xtfsetoverlayfolder-xtfapi-xbox-windows-m.md)
- [Manage overlay folders](/tools/tools-console/devhome/devhome-overlay-folders.md)
- [Managing overlay folders](/tools/tools-console/wdp/windows-device-portal-on-xbox-overlay-folders.md)
- [Store listing for titles on XBOX devices](/publishing/game-publishing/concepts/store-listing.md)
