# Accessing internal Cesium function from outside of the script

**URL:** <https://community.cesium.com/t/accessing-internal-cesium-function-from-outside-of-the-script/1338>\
**Category:** CesiumJS\
**Created:** [July 9, 2014, 5:57pm UTC](https://community.cesium.com/t/accessing-internal-cesium-function-from-outside-of-the-script/1338 "2014-07-09T17:57:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![douglas.oliver.12](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@douglas.oliver.12](https://community.cesium.com/u/douglas.oliver.12)\
**Post date:** [July 9, 2014, 5:57pm UTC](https://community.cesium.com/t/accessing-internal-cesium-function-from-outside-of-the-script/1338/1 "2014-07-09T17:57:14Z")

</div>

Hello,

I am coding a cesium app and I would like to call an internal cesium function that clears all primitives “function clearAll() { primitives.removeAll(); }” when i do a button press. I know about cesium’s built in toolbar buttons but I would like to use an html button I already have in place to call this function on click. It’s located in "" Any help would be appreciated!
