# How to empty the contents of a movieclip?

**URL:** <https://forum.kirupa.com/t/how-to-empty-the-contents-of-a-movieclip/177515>\
**Category:** Uncategorized\
**Created:** [February 2, 2006, 4:39pm UTC](https://forum.kirupa.com/t/how-to-empty-the-contents-of-a-movieclip/177515 "2006-02-02T16:39:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandao](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@brandao](https://forum.kirupa.com/u/brandao)\
**Post date:** [February 2, 2006, 4:39pm UTC](https://forum.kirupa.com/t/how-to-empty-the-contents-of-a-movieclip/177515/1 "2006-02-02T16:39:56Z")

</div>

I am having trouble to erase the contents of a movieclip

these contents that I am trying to erase are movieclips (created dinamically before)

I tried

```auto

for (var i in _path.moviecliptoempty) {
      if(typeof(i) == "movieclip") {
         i.removeMovieClip();
      }
}

```

but it doesn’t work! am I doing something wrong?

different suggestions? :nerd:

thankyou
