Dynamically remove any attached mc's if there are any?

Guys,

how would i go about writing a function that looks at an mc(empty mc) and deletes any attached movie clips (if there are any).

Thanks in advance.