How to delete all content of input.txt file after instance.save()?
<pre><code>text = "sample sample"
text_file = open("input.txt", "r+b")
text_file.write(text)
instance.src_after = File(text_file)
instance.save()
text_file.close()
</code></pre>

<p>How to delete all content of <code>input.txt</code> file after <code>instance.save()</code> ?</p>
