Can’t delete file on mac osx

Like: Unable to change file mode on Edge Of Tomorrow.m4v: Operation not permitted

chflags nouchg /path/to/item

chflags -R nouchg /path/to/

although, sometimes you need to close the app that has it locked, VLC, commander one and others can all lock files

access denied mac

operation not permitted mac