supprimer fichier pythpn 1

supprimer fichier pythpn

import os
os.remove("/path/file.txt")

Here is what the above code is Doing:
1. Import the os module.
2. Call the os.remove() function, passing it the path to the file you want to delete.

Similar Posts