here is what I found on wowwiki

http://www.wowwiki.com/API_ResetInstances

might have to use a script to do it

you can try putting this in a macro
/script ResetInstances();

but someone with more programming experience can help you more