Datastore Namespace Manager Delete Directory
Deletes the given top-level directory from a datastore.
The top-level directory must be a full path of the form
/vmfs/volumes/[datastore-uuid]/[directory-uuid]
as returned by CreateDirectory.
Requires Datastore.Config privilege on the datastore.
See also CreateDirectory.
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case DatastoreNamespaceManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"DeleteDirectoryRequestType Object"
Stable vmfs path of the directory to delete.
No Content
FileNotFound: if the given directory can not be found
FileFault: if a generic system error happened.
InvalidDatastore: if the given datastore is not supported by the DatastoreNamespaceManager
InvalidDatastorePath: if the given path is not a top-level directory
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/DatastoreNamespaceManager/{moId}/DeleteDirectory