unable to delete file - rm: cannot remove Input/output error

The same circumstance I met. I am pretty sure I am going to delete the directory. So I try to use rm -rf XXX and also Shift + Delete to remove but both failed because of the same error. Interestingly, I fixed it by right clicking the directory Move to Trash and then Empty Trash. Hope works for you too.


Looks like the filesystem has some errors on it. Do full scandisk /checkdisk from windows. (scan disk for errors)


A workaround that thankfully worked for me was to plug the drive into a Windows system and delete the offending files and folders using Shift + Delete (immediate delete without Recycle Bin).

After that, the issue seemed to be resolved when the drive was returned to Ubuntu.