I want to permanently delete a file i have created with my python code.
I know the os.remove() etc but can't find anything specific to delete a file permanently.(Don't want to fill Trash with unused files)
I want to permanently delete a file i have created with my python code.
I know the os.remove() etc but can't find anything specific to delete a file permanently.(Don't want to fill Trash with unused files)
os.remove
is already what you're looking for. It doesn't send things to Trash. It just deletes them.