Removing dynamically generated MCs

Can someone recommend an efficient way to remove the clips generated by the following function.

function loadClips()  {

    for (i = 0; i < Urls.length; i++) {
    var mov:MovieClip = attachMovie("numClip", "numClip"+i, this.getNextHighestDepth(), {_x:xPos, _y:yPos});
    xPos += this["numClip"+i]._width+5;
    this["numClip"+i].ID = i;
    this["numClip"+i].onRelease = function()  {
        holder.loadMovie(Urls*);

    }
}

Thanks / help appreciated