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

# Intelligent Delivery: OnDemand content

> Intelligent Delivery: OnDemand content

<Note>Use of the OnDemand attribute is no longer recommended.  Instead, you should consider using Features and Recipes to group content into independent addable and removable groups.  Features and Recipes still allow you to specify what content installs by default, just like the OnDemand attribute.</Note>

OnDemand chunks allow titles to designate content that's not installed by default but can be installed at the user's request or when the title calls the [XPackageInstallChunks](/reference/system/xpackage/functions/xpackageinstallchunks) method.

To specify a chunk as OnDemand, apply the `OnDemand` attribute to a chunk in your layout.xml file as shown in the following example.

```xml theme={null}
<Chunk Id="6000" Tags="LevelEditor" OnDemand="true">  
```

Chunks which include the `OnDemand` attribute must also include custom tag specifiers so that runtime APIs can reference the associated chunk by tag.

Titles can uninstall OnDemand content by calling the [XPackageUninstallChunks](/reference/system/xpackage/functions/xpackageuninstallchunks) method.

<a id="ID4EKB" />

## Reference API documentation

* [XPackage (API contents)](/reference/system/xpackage/xpackage_members)
  * Functions
    * [XPackageInstallChunks](/reference/system/xpackage/functions/xpackageinstallchunks)
    * [XPackageUninstallChunks](/reference/system/xpackage/functions/xpackageuninstallchunks)

## See also

[Intelligent Delivery](/build/core-features/common/packaging/overviews/intelligentdelivery)


## Related topics

- [Intelligent Delivery](/build/core-features/common/packaging/overviews/intelligentdelivery.md)
- [XPackageInstallChunks](/reference/system/xpackage/functions/xpackageinstallchunks.md)
- [XPackageUninstallChunks](/reference/system/xpackage/functions/xpackageuninstallchunks.md)
- [XR-129 Intelligent Delivery Content Management](/publishing/certification/xr/xr-129.md)
- [FMA: XR-129 Intelligent Delivery Content Management](/publishing/certification/fma/xr-129.md)
