os.remove
will call the operating system's unlink
functionality, and delete the file from the disk.
Technically the OS/filesystem probably just marks the sectors as free, and removes the file entry from the directory, but that's up to the filesystem implementation.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…