I’m having a problem deleting a folder that was previously managed by Microsoft OneDrive.
The folder is called “WP”. I already tried: sudo, disabling SIP, removing chflags.
❯ csrutil status
System Integrity Protection status: disabled.
❯ ls -la WP
total 0
drwxrwxrwx@ 7 user staff 224B Mar 20 11:26 ./
drwxrwxrwx@ 4 user staff 128B Mar 25 17:03 ../
❯ rm -r WP
rm: WP: Permission denied
❯ sudo rm -r WP
Password:
rm: WP: Permission denied
❯ sudo rmdir WP
rmdir: WP: Directory not empty
It got interesting, when I listed the chflags:
❯ ls -lO .
total 0
drwxrwxrwx@ 7 user staff compressed 224B Mar 20 11:26 WP/
But removing the compressed flag is not allowed:
❯ sudo chflags -R 0 WP
chflags: WP: Operation not permitted
I assume it has something to do with the folder being dataless/compressed from being created in OneDrive. Any idea how I can delete this folder?