Command to delete a file in python in ubuntu

Please tell me the command to delete a file in python in ubuntu!!

1 Like

Hello @dheerajswaroop15
use following command to remove file
sudo rm filename.py
at filename write your filename of python file.
this command is useful for remove your file
Hope this information is useful for you.

1 Like

Thank you so much!!!:relieved:

1 Like

Hello @dheerajswaroop15
command is useful for remove your file
“sudo rm filename.py”
at filename write your python file.
That’s it …!!

1 Like