How to empty the contents of a movieclip?

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


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