Un attaching movie clips

Hey everyone. I am making something that when a button is clicked, a movie clip that takes up the whole screen is attached using the attachMovie command. At the end of the movieclip I have a button that I want to clear the movieclip when clicked. What is the command to do this. I’ve tried clear, destroyObject, removeMovieClip, but maybe I’m just doing it wrong. By the way, the movie clip is in the library. Also, how would I refer to this movie clip when using the command? It’s in the library but I want it to destroy the instance on screen. Is it _parent.name or _root.name or what? Thanks.