# Cesium viewer and & CZML

**URL:** <https://community.cesium.com/t/cesium-viewer-and-czml/289>\
**Category:** CesiumJS\
**Created:** [February 25, 2013, 5:56pm UTC](https://community.cesium.com/t/cesium-viewer-and-czml/289 "2013-02-25T17:56:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alist](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@Alist](https://community.cesium.com/u/Alist)\
**Post date:** [February 25, 2013, 5:56pm UTC](https://community.cesium.com/t/cesium-viewer-and-czml/289/1 "2013-02-25T17:56:40Z")

</div>

I apologize in advance for asking such novice questions but I am a novice user. I am using the Cesium Viewer app. Is there a way to remove (delete) a .czml file once it has been dropped on the globe? What steps would I need to take to modify the current javascripts to add a delete button or is there an easier approach. I am a novice at javascript so please be specific. Thanks.

---

<div class="post-metadata">

**Author:** ![Ed\_Mackey](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ed_mackey/32/2226_2.png) [@Ed\_Mackey](https://community.cesium.com/u/Ed_Mackey)\
**Post date:** [February 25, 2013, 6:04pm UTC](https://community.cesium.com/t/cesium-viewer-and-czml/289/2 "2013-02-25T18:04:02Z")

</div>

Hi,

Check out our “[Simple CZML Demo](http://cesium.agi.com/Cesium/Apps/Sandcastle/index.html?src=Simple%20CZML%20Demo.html).” The buttons in the top-left load different CZML scenes. Look at the source next to them, each button calls “widget.removeAllCzml();” before loading more CZML.

If you have a button that just calls widget.removeAllCzml(); without adding more CZML, it will be a “clear scene” button (and you may want to label it as such). Hopefully that helps,

–Ed.
