added 2 methods for quickly empty caches and temporary directory