Removing folder from within dataset

How do i remove that data folder, its a old install of next cloud
zfs mounts doesn’t show it
Only visible when installing new apps

Folders can be removed using the shell, or if the Media dataset has been shared using SMB/NFS, using a client accessing that share.

rmdir doesn’t work as the directory is not empty
–ignore-fail-on-non-empty seems to make no difference as its still there.

rm -rf would do the job. Or for a nicer and more versatile UI, run mc.

1 Like

Indeed, just use it carefully. A single mistakenly added space can result it wiping a lot more data than intended.

I recommend navigating to the folder in question /mnt/Tobs-Pool/ and from there running:
rm -rf data

Definitely. Or, again, mc.

1 Like

Thanks Neo, rm -rf didn’t seem to be an accepted switch

Remove the DIRECTORY(ies), if they are empty.

  --ignore-fail-on-non-empty
                ignore each failure that is solely because a directory
                is non-empty

-p, --parents remove DIRECTORY and its ancestors; e.g., ‘rmdir -p a/b/c’
is similar to ‘rmdir a/b/c a/b a’

-v, --verbose output a diagnostic for every directory processed
–help display this help and exit
–version output version information and exit

sudo mc did the trick and thats now gone, thanks alot for your help

rm -rf isn’t a switch for rmdir, it’s a separate command.

Having said that, it’s good that you solved it using mc instead, as it’s probably a better pick in this case.