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

# DestroyOwnedObject

> Destroys a lifetime-tracked object.

Destroys a lifetime-tracked object.

## Syntax

```cpp theme={null}
HRESULT DestroyOwnedObject(
    ID3D12DeviceChild  pObject
)
```

### Parameters

*pObject \[in]*\
Type: ID3D12DeviceChild \*

A pointer to an **ID3D12DeviceChild** interface representing the lifetime-tracked object.

### Return value

Type: HRESULT

## Remarks

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also


## Related topics

- [SetDeleteOnDestroy](/reference/graphics/d3d12/interfaces/id3d12shadercachesession/methods/id3d12shadercachesession_setdeleteondestroy_public.md)
- [PartyXblManager::DestroyChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_destroychatuser.md)
- [PartyDestroyLocalUserCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partydestroylocalusercompletedstatechange.md)
- [client_network_destroyed](/services/playfab/api-references/events/Networking/client-network-destroyed.md)
- [PartyDestroyedReason](/services/playfab/multiplayer/networking/reference/enums/partydestroyedreason.md)
