How do I unload my flv automatically when it's done?

I want my flv to unload itself when it is finished? How can I do this?
Thanks.