Delete locked files on macOS with the Terminal Leave a reply Unlock the file: chflags nouchg filename.txt Options -R recursively change files-v verbose References https://www.oreilly.com/library/view/mac-os-x/0596004605/ch01s08.htmlhttps://superuser.com/questions/40749/command-to-unlock-locked-files-on-os-x