# Dynamic CZML File Loading

**URL:** <https://community.cesium.com/t/dynamic-czml-file-loading/5743>\
**Category:** CesiumJS\
**Created:** [July 3, 2017, 1:57pm UTC](https://community.cesium.com/t/dynamic-czml-file-loading/5743 "2017-07-03T13:57:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_James\_Liguori](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Robert\_James\_Liguori](https://community.cesium.com/u/Robert_James_Liguori)\
**Post date:** [July 3, 2017, 1:57pm UTC](https://community.cesium.com/t/dynamic-czml-file-loading/5743/1 "2017-07-03T13:57:36Z")

</div>

How would one allow the user to dynamically load CZML files… also clearing out the previously loaded CZML files?

Thanks,

Robert

---

<div class="post-metadata">

**Author:** ![Rachel\_Hwang](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Rachel\_Hwang](https://community.cesium.com/u/Rachel_Hwang)\
**Post date:** [July 5, 2017, 1:13am UTC](https://community.cesium.com/t/dynamic-czml-file-loading/5743/2 "2017-07-05T01:13:12Z")

</div>

Hi Robert,

Checkout the load function for CZML: [http://cesiumjs.org/Cesium/Build/Documentation/CzmlDataSource.html?classFilter=CZM](http://cesiumjs.org/Cesium/Build/Documentation/CzmlDataSource.html?classFilter=CZM)

This will replace the data from the previous load from that file.

Hope that helps,

- Rachel
