Use safer way to try to delete temp folder