This example shows how to use the DELETE /datastores API operation to delete an existing datastore within the HyperFlex cluster. Important information for using this specific API, such as the API method, API parameters, and API request URL can be found within the HyperFlex REST API Explorer in the Datastore sub-category under the Core APIs top-level category.
API documentation location in HyperFlex REST API Explorer:

Example procedure using the Postman API client:
- Set the method type to DELETE.

- Set the URL based on the specific API call. For the DELETE /datastores operation to delete an existing datastore, the complete URL should be set to https:///rest/datastores/.
NOTE:
The Get a List of Existing Datastores API example can be used to find out the datastore id of an existing datastore.

- Set the Authorization Type to Bearer and input a valid access token in the Token textbox. This example uses the access token that was generated in Obtaining a Valid Access Token Topic.
Note:
By selecting the Authorization Type as Bearer Token, Postman will automatically generate the required Header once the request is sent. An alternative method is to set Authorization Type to No Auth and manually enter the Header entry with the Key set to Authorization and the Value set to Bearer . Ensure there is a space between the word Bearer and .

- Click the Send button in the upper right corner and review the response in the bottom pane. If successful, you will get a response which includes information that helps verify if the datastore has been deleted from the HyperFlex cluster.

The datastore no longer exists in HyperFlex Connect
