VMware ESXi and vSphere Cluster Management

Delete a VMFS Datastore in VMware vSphere

Learn how to safely delete a VMFS datastore in the vSphere Web Client, protect required data, distinguish deletion from unmounting, and verify the result.

Deleting a VMFS datastore is a destructive storage operation. Before you continue, confirm that every virtual machine, file, host service, and ESXi host that can access the datastore is ready for its removal.

What a VMFS Datastore Is

VMFS (VMware Virtual Machine File System) is the clustered filesystem that ESXi uses to store virtual machine files on block storage. A VMFS datastore is the vSphere storage container created on that device. It may be local to one ESXi host or shared by multiple hosts.

The vSphere Web Client is the browser-based management interface connected to vCenter Server, VMware's centralized platform for managing ESXi hosts, virtual machines, and datastores. The datastore inventory lists storage resources available to hosts and virtual machines.

What Deleting a VMFS Datastore Does

Deleting a VMFS datastore removes the datastore from vSphere and makes the files stored on that VMFS volume unavailable to every ESXi host with access to it. These files can include virtual machine configuration files, virtual disks, snapshots, logs, templates, ISO images, and metadata.

Treat the operation as destructive and effectively irreversible from the vSphere administration perspective. Any data that must be retained must be backed up, copied, or migrated before the deletion is confirmed. Do not assume that removing the datastore from inventory, unmounting it, or disconnecting one host preserves the same result.

ActionEffect on VMFS dataEffect on ESXi host accessTypical use caseRisk level
Delete datastoreRemoves the VMFS datastore and makes its stored files unavailableRemoves the datastore from the vSphere storage view; shared-host effects must be consideredRetiring the datastore and its dataHigh and destructive
Unmount datastoreLeaves the VMFS filesystem and content on the storage deviceRemoves access from one selected ESXi hostRemoving host access while retaining the datastoreLower, but dependencies must still be checked
Remove from inventory or refresh a viewDoes not by itself erase the VMFS contentChanges how the resource is displayed or managedAdministrative cleanup or correcting a stale viewUsually lower, but not equivalent to deletion

Delete Versus Unmounting

Unmounting removes a datastore's accessibility from a specific ESXi host without deleting the VMFS filesystem itself. Use unmounting when the goal is to stop one host from using the datastore while preserving the datastore and its files for other intended hosts or for later use.

Deleting is appropriate only when the VMFS datastore and all data on it are no longer needed, or when all required data has been preserved elsewhere. A shared datastore requires special care because several ESXi hosts may continue to list or use it.

Pre-Deletion Impact Assessment

Perform the following review before opening the deletion confirmation. For a shared datastore, perform the checks across every ESXi host that has access, not only the host selected in the client.

CheckWhy it mattersHow to verifyRequired before deletion
Virtual machines and virtual disksDeleting the datastore can make configuration files or disks inaccessibleReview each VM's datastore and virtual disk locations; include powered-off VMsYes
VM power stateActive workloads can fail during removalConfirm dependent VMs are powered off, or migrate them completelyYes
Templates, ISO images, snapshots, and logsThese are also virtual machine files or datastore contentInspect the datastore browser and VM/template storage settingsYes
Shared-host accessAnother host or cluster may still require the datastoreList all hosts and clusters with the datastore mounted or presentedYes
Active operationsInterrupted tasks can leave workloads or copies incompleteReview recent and running tasks, backup jobs, replication, Storage vMotion, and cold migrationsYes
Mounted media and datastore activityVMs or administrators may still be reading files from the datastoreCheck mounted ISO media, datastore browser sessions, and active file operationsYes
Host servicesRemoving the datastore can affect host operation or diagnosticsCheck scratch, diagnostic, coredump, HA heartbeat, and other configured datastore dependenciesYes
PermissionsThe delete action may be hidden or rejectedConfirm the account has the required vCenter and datastore-management privilegesYes

Protect Data Before Deletion

  1. Inventory the datastore contents and identify everything that must be retained.
  2. Back up required virtual machines and files, or copy them to another datastore.
  3. Migrate virtual machines and virtual disks with Storage vMotion or a suitable cold migration when available.
  4. Copy retained ISO images, templates, exports, and other files to another approved location.
  5. Wait for all migrations, backups, replication operations, and copy jobs to complete.
  6. Validate the results. Check backup success, test that important files or virtual machines are recoverable, and confirm migrated VMs use the destination datastore.
  7. Perform one final datastore-browser and dependency review immediately before deletion.

Delete the VMFS Datastore in the vSphere Web Client

The exact labels can vary slightly between vSphere releases, but the workflow is generally performed from the selected host's datastore view.

  1. Sign in to the vSphere Web Client through vCenter Server.
  2. In the vSphere inventory, select the appropriate ESXi host.
  3. Open Related Objects, then open Datastores.
  4. Select the intended VMFS datastore. Carefully verify its name, capacity, host association, and storage identity so that you do not select a similarly named datastore.
  5. Choose All vCenter Actions > Delete Datastore. Depending on the client version, you may also reach this action by right-clicking the datastore.
  6. Read the destructive confirmation prompt. Confirm only after the dependency, backup, and shared-host checks are complete.
  7. Wait for the task to finish and review the task result for errors.
ESXi host inventory object > Related Objects > Datastores > select the VMFS datastore > All vCenter Actions > Delete Datastore

Post-Deletion Verification

  1. Refresh the datastore inventory and confirm that the deleted datastore no longer appears for the selected host.
  2. Check every other ESXi host that previously accessed the datastore. Confirm that it is absent or that the intended storage-access change is reflected there.
  3. Review vCenter tasks and events for a successful completion rather than assuming that a disappeared client entry means the operation succeeded.
  4. Check virtual machines, clusters, and host services for missing-datastore, inaccessible-file, missing-disk, scratch, diagnostic, coredump, or HA heartbeat errors.
  5. Verify that remaining workloads can access their current virtual disks, snapshots, templates, and other required files.

If the underlying storage device will be reused, presenting the device again, changing its partitioning, or creating a new datastore is a separate storage-administration task. Do not treat datastore deletion as a complete replacement-storage workflow.

Practical Examples

Retiring an Unused Local Datastore

  1. Confirm that no powered-on or powered-off virtual machine has configuration files, disks, snapshots, or logs on the local datastore.
  2. Copy any retained ISO images, templates, or exports to another datastore and validate the copies.
  3. Check that the host does not use the datastore for scratch, diagnostics, coredump, HA heartbeat, or another service.
  4. Open the host's datastore view and delete the now-empty or retired VMFS datastore.
  5. Refresh the inventory and verify that it no longer appears.

Removing a Shared Datastore from a Cluster

  1. Identify every ESXi host and cluster with access to the shared VMFS datastore.
  2. Move or power off all dependent workloads and migrate their files to approved storage.
  3. Stop or complete backup, replication, migration, and other tasks involving the datastore.
  4. Verify that no host-level service relies on it.
  5. Delete it only after confirming that the storage is being retired for all hosts that can access it.
  6. Verify the result on each host and inspect events for missed dependencies.

Preserving Data While Removing One Host's Access

If the objective is to stop one ESXi host from using a datastore while keeping the VMFS volume and its files, do not select the delete action. Use the unmount workflow for that host, then verify that the other intended hosts can still access the datastore.

Troubleshooting

The Datastore Cannot Be Deleted or the Delete Option Is Unavailable

  • Possible cause: Virtual machines or files still use the datastore. Resolution: Review VM storage locations, snapshots, templates, logs, and the datastore browser; migrate or remove the dependencies.
  • Possible cause: The datastore is mounted or in use by another ESXi host. Resolution: Identify all connected hosts and confirm that the storage is no longer required anywhere.
  • Possible cause: A backup, replication, storage migration, or other task is active. Resolution: Review running tasks and wait for them to complete or stop them according to your change procedure.
  • Possible cause: A host service depends on the datastore. Resolution: Reconfigure scratch, diagnostics, coredump, HA heartbeat, or other services before retrying.
  • Possible cause: The account lacks sufficient privileges. Resolution: Ask a vCenter administrator to verify datastore-management permissions.

Virtual Machines Report Inaccessible Disks or Missing Files

The datastore may have been deleted before the VM files were migrated or backed up, or a dependency may have been missed. Stop affected workloads where appropriate, recover required data from a validated backup, and correct the virtual machine storage configuration. Do not repeatedly power-cycle a VM whose required virtual disk is unavailable.

The Datastore Remains Visible on Another Host

  • Confirm which action was performed. An unmount or removal of host access is not the same as deleting the VMFS datastore.
  • If the storage is shared, refresh or rescan storage views where appropriate and review vCenter tasks and events.
  • Check whether the underlying device is still presented to the host. Device presentation and datastore inventory state are related but separate storage-management concerns.

Exam-Relevant Notes

  • Delete is destructive and concerns the VMFS datastore and its stored data.
  • Unmount removes access from a particular ESXi host while preserving the VMFS filesystem and its content.
  • A datastore shared by multiple hosts must be assessed across every host, not just the host from which the action is launched.
  • Powered-off virtual machines can still depend on a datastore; power state alone does not prove that storage is unused.
  • Backups and migrations must be validated before a destructive storage operation is confirmed.