added force arg to delete temp file

removing temp file even outside work dir with force arg to true