You can delete a single file or a single empty folder with functions in the os module. For example, if you want to delete a file my_file.txt,
>>> import os >>> os.remove('my_file.txt')
The argument to os.remove must be absolute or relative path.
You can delete a single file or a single empty folder with functions in the os module. For example, if you want to delete a file my_file.txt,
>>> import os >>> os.remove('my_file.txt')
The argument to os.remove must be absolute or relative path.