Added one boolean condition to check delete temp file or not after download