Cache of what? Different applications handle caching differently, cache different things and cache in different ways. Unfortunately, I know of no universal way to ask an application to remove its transient data.
But if you're looking to remove, say, the browser cache, that might be straight forward.