Skip to main content
ONTAP tools for VMware vSphere 10.0

Delete vVols datastore

Contributors

This API deletes the VMware Virtual Volumes (vVols) datastore from storage.

About this task

A vVols datastore exists as long as at least one FlexVol volume is available on the datastore. If you want to delete a vVols datastore in a HA cluster, you should first unmount the datastore from all hosts within the HA cluster, and then delete the residing .vsphere-HA folder manually using the vCenter server user interface.

Steps

Use the following API to delete vVols datastore.

DELETE
​/virtualization​/api​/v1​/vcenters​/{vcguid}​/vvols​/datastores​/{moref}

Examples

  • Delete vVols datastore and delete volumes from storage

  DELETE /api/v1/vcenters/cdded9ad-6bsd-4c9e-b44g-691250bfe2df/vvols/datastores/datastore-28?delete_volumes=true
Note Delete vVols Datastore workflow deletes datastore-volumes if you have passed the delete_volume flag as true irrespective of if the datastore-volume is managed or not managed.
  • Delete vVols datastore and do not delete volumes from storage

  DELETE /api/v1/vcenters/cdded9ad-6bsd-4c9e-b44g-691250bfe2df/vvols/datastores/datastore-28?delete_volumes=false

Response:

{

    "id": "1889"

}