How to Delete a Datastore via CLI in SynetoOS 5

Written By Christian Castagna (Administrator)

Updated at January 29th, 2026

→ Applies to: SynetoOS 5.x

WARNING
The delete operation will delete all data/snapshots present in the datastore and will no longer be recoverable.

 

Step 1. Login to SynetoOS GUI

https://<your_ip_address_or_hostname>

 

Step 2. From Virtualization menu, click on Virtual machines

 

Step 3. Select the VM you want to delete datastore

 

Step 4. Write down the Volume ID

 

Step 5. Connect to SynetoOS appliance via SSH as admin

ssh admin@<your_ip_address_or_hostname>

 

Step 6. Become Super User

sudo su

 

Step 7. List datastores

zfs list

 

Step 8. Delete a specific datastore (replace <pool_name> and <uuid> with the correct information)

zfs destroy -r -f <pool_name>/syn-volumes/<uuid>

EXAMPLE

zfs destroy -r -f hybrid/syn-volumes/9328f4d4-4347-429c-8ec9-3d26f5292a1b

 

Step 9 (optional). Check that no errors occur

If you receive this error:

cannot unmount 'hybrid/syn-volumes/9328f4d4-4347-429c-8ec9-3d26f5292a1b': pool or dataset is busy

List open files on the dataset (replace <pool_name> and <uuid> with the correct information)

lsof | grep '<pool_name>/syn-volumes/<uuid>'

Identify processes using the dataset

fuser -c /<pool_name>/syn-volumes/<uuid>

Kill any processes using the dataset (replace <pid> with the process PID)

kill -9 <pid>

Force unmount the dataset

umount -f /<pool_name>/syn-volumes/<uuid>

 

Step 10 (optional). Delete the specific datastore (replace <pool_name> and <uuid> with the correct information)

zfs destroy -r -f <pool_name>/syn-volumes/<uuid>

EXAMPLE

zfs destroy -r -f hybrid/syn-volumes/9328f4d4-4347-429c-8ec9-3d26f5292a1b