How to delete smb files using os.remove()

Hello, I want my script to be able to delete a file stored on an smb network share. I am running the script on an android tv box.
For example if I try:
os.remove(‘SMB://Computer Name/Music Directory/musicFileName.mp3’)
The file doesn’t get deleted and I also get an error. But the same method works if the file is located in the internal storage of the device. It also fails if the file is located on external storage
Thanks