Delete the entire temporary directory instead of just the temp file, also use `cacheDirectory` over `documentDirectory` (#3985)
* lint * remove extra arg
authored by hailey.at and committed by GitHub 2 years ago 73d094c6 00a57df5