I want to write a Python script that will automate my commands without waiting for user input.
My python script will delete the least played video. When I execute the command:
it asks for user input:
rm: remove write-protected regular file 'video_123.mp4'?
to which on giving input y it deletes the file.
How will I write that in python script to automatically delete the file?