try to delete some old folder (on NTFS driv - Tuxera) when use delete immediately:

"is in use"

i try restart but nothing changed & can't try in safe mode because of Tuxera needed

try with rm -rf (with or without sudo):

Directory not empty

try with rmdir

Directory not empty

and rmdir -r returns

rmdir: illegal option -- r

listing its content with ls -la returns

total 2064
drwxrwxrwx@ 1 mohsen  staff  1048576 Mar 25 15:15 .
drwxrwxrwx  1 mohsen  staff     8192 Mar 25 15:15 ..

OS: MacOs Catalina

So I wonder what happened, and how to fix this problem? Thanks!

  • rm -rf should work, if you have permission. rmdir only removes empty directories. "in use" suggests that there is a process using it. Also check that it is not a mount point. – ctrl-alt-delor Mar 25 at 11:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.