Can't delete test folder directory using TrueNAS Shell

I created a test folder (called “Docs1”) with a few files to sync a folder on my PC to my TrueNAS using SyncThing. Afterward I removed the folder from my PC and from Syncthing on both devices.

I want to delete this folder from my NAS entirely, but it still shows up as a folder in my Syncthing directory. I pathed to the directory in Shell to remove the few files in that folder, that worked, but the folder itself can’t be deleted. The CLI returns an error that the directory is not empty even though I verified that it is.

Is there a way to delete this folder entirely without blowing away the Syncthing app from my NAS?

Welcome here @Keenenkb !

ls shows only normal files. Use ls -l and you will also see hidden files and directories.

Thanks for the info! I ran that command and it returns “total 0”. I’m running this as root, so I can’t imagine that its a permissions thing. Are the folders here just indestructable?

image

I got it! The command I needed was rm -rf

2 Likes

Perfect! And I am sorry that I mislead you. To see all files, you need to use ls -a

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.