how to delete local files python code example
Example 1: python os remove file
import os
os.remove("filename.txt")
Example 2: delete file in django terminal
rm -r projectfoldername
import os
os.remove("filename.txt")
rm -r projectfoldername