> ## 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.

# WdDeleteErrorCallback

> WdDeleteErrorCallback

# WdDeleteErrorCallback

Currently unused. [WdDeleteRemoteFiles](/reference/remoting/functions/wddeleteremotefiles) never invokes this callback.

**Introduced in:** [RIT 0.0.13-preview](/reference/remoting/release-versions#release-versions) (declaration only).

## Syntax

```cpp theme={null}
typedef HRESULT (*WdDeleteErrorCallback)( 
    _In_ WdCopyErrorSeverity severity,
    _In_z_ const char* message,
    _In_ HRESULT error,
    _In_opt_ void* context
);
```

### Parameters

`severity _In_`\
Type: **[WdCopyErrorSeverity](/reference/remoting/enums/wdcopyerrorseverity)**

The severity of the message (Warning or Error).

`message _In_z_`\
Type: **const char\***

A null-terminated string containing the diagnostic message.

`error _In_`\
Type: **HRESULT**

The HRESULT error code associated with the message. `S_OK` for warning messages.

`context _In_opt_`\
Type: **void\***

The user-defined context pointer that was specified in the [WdDeleteStatusCallbacks](/reference/remoting/structs/wddeletestatuscallbacks) structure.

### Return value

Type: **HRESULT**

Unused. This callback is not invoked.

## Remarks

This callback type uses the same [WdCopyErrorSeverity](/reference/remoting/enums/wdcopyerrorseverity) enumeration as the copy error callback.

## Requirements

| Requirement | Value |
| - | - |
| **Header** | WdRemoteIteration.h |
| **Library** | wdremoteapi.lib |
| **Supported OS** | Windows 11 and later |
| **Supported architectures** | x64, ARM64 |

## See also

* [WdDeleteRemoteFiles](/reference/remoting/functions/wddeleteremotefiles)
* [WdCopyErrorSeverity](/reference/remoting/enums/wdcopyerrorseverity)
* [WdDeleteStatusCallbacks](/reference/remoting/structs/wddeletestatuscallbacks)
* [XBOX PC Remote Iteration API](/reference/remoting/remoteiteration_members)


## Related topics

- [WdDeleteStatusCallbacks](/reference/remoting/structs/wddeletestatuscallbacks.md)
- [XBOX PC Remote Iteration API](/reference/remoting/remoteiteration_members.md)
- [WdDeleteProgressCallback](/reference/remoting/callbacks/wddeleteprogresscallback.md)
- [WdCopyErrorCallback](/reference/remoting/callbacks/wdcopyerrorcallback.md)
- [WdDeleteRemoteFiles](/reference/remoting/functions/wddeleteremotefiles.md)
