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

# XtfUnregisterPackage

> XtfUnregisterPackage

Unregisters a package deployed to the title scratch drive.

## Syntax

```cpp theme={null}
HRESULT XtfUnregisterPackage(
         LPCWSTR address,
         LPCWSTR packageFullName
)  
```

### Parameters

*address*\
Type: LPCWSTR

\[in] The address of the console.

*packageFullName*\
Type: LPCWSTR

\[in] The full name of the package to unregister.

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an HRESULT error code.

## Remarks

This function unregisters a package deployed to the title scratch drive, such as a package previously deployed by the [XtfRegisterPackage](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfregisterpackage-xtfapi-xbox-windows-m.md) function. This function unregisters and removes all applications associated with the specified package.

For more information about managing applications, see [Application Management (xbapp.exe) (NDA topic)](https://docs.xbox.com/tools/tools-console/commandlinetools/xbapp.md).

## Requirements

**Header:** xtfapi.h

**Library:** XtfApi.lib

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

## See also

[XtfRegisterPackage](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfregisterpackage-xtfapi-xbox-windows-m.md)\
[XTF Transport Errors (NDA topic)](https://docs.xbox.com/tools/tools-console/commandlinetools/xtf-transport-errors.md)


## Related topics

- [XtfRegisterPackage](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfregisterpackage-xtfapi-xbox-windows-m.md)
- [Additional Xtf APIs (API contents)](https://docs.xbox.com/reference/tools/xtf/xtfapi/atoc-xtfapi.md)
- [XtfPullUnregisterApp](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfpullunregisterapp-xtfapi-xbox-windows-m.md)
- [XPackageUnregisterPackageInstalled](https://docs.xbox.com/reference/system/xpackage/functions/xpackageunregisterpackageinstalled.md)
- [XPackageUnregisterInstallationProgressChanged](https://docs.xbox.com/reference/system/xpackage/functions/xpackageunregisterinstallationprogresschanged.md)
