Python os.remove() Method
The os.remove() method deletes a file.
Syntax
os.remove(path)
Return Value
None.
Example
Output
Click Run to execute your code