Skip to main content

Delete volume

Contributors netapp-ranuk

You can delete an existing volume.

Choose the workflow to use based on the type of Cloud Volumes ONTAP deployment:

Delete volume for single node

You can use this workflow to delete a volume for a single node working environment.

Step 1. Select the working environment

Perform the workflow Get working environments and choose the publicId and svmName values of the working environment for the workingEnvironmentId and svmName path parameters.

Step 2. Select the volume

Perform the workflow Get volumes and choose the name of the required volume for the volumeName path parameter.

Step 3. Delete the volume

You can issue the REST API call to delete the volume.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

DELETE

/occm/api/vsa/volumes/{workingEnvironmentId}/{svmName}/{volumeName}

Curl example
curl --request DELETE
--location "https://cloudmanager.cloud.netapp.com/occm/api/vsa/volumes/<WORKING_ENV_ID>/<SVM_NAME>/<VOLUME_NAME>"
--header "Content-Type: application/json"
--header "x-agent-id: <AGENT_ID>"
--header "Authorization: Bearer <ACCESS_TOKEN>"
Additional input parameters

The JSON input example includes the minimum list of parameters.

Parameter Type Required Description

<SVM_NAME> (svmName)

Path

Yes

Identifies the SVM

workingEnvironmentId <WORKING_ENV_ID>

Path

Yes

Identifies the working environment ID

<VOLUME_NAME> (volumeName)

Path

Yes

Identifies the volume

Output

None

Delete volume for high availability pair

You can use this workflow to delete a volume for an HA working environment.

Step 1. Select the working environment

Perform the workflow Get working environments and choose the publicId and svmName values of the working environment for the workingEnvironmentId and svmName path parameters.

Step 2. Select the volume

Perform the workflow Get volumes and choose the name of teh required volume for volumeName path parameter.

Step 3. Delete the volume

You can issue the REST API call to delete the volume.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

DELETE

/occm/api/aws/ha/volumes/{workingEnvironmentId}/{svmName}/{volumeName}

Curl example
curl --request DELETE \
--location "https://cloudmanager.cloud.netapp.com/occm/api/aws/ha/volumes/<WORKING_ENV_ID>/<SVM_NAME>/<VOLUME_NAME>" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>"
Additional input parameters

The JSON input example includes the minimum list of parameters.

Parameter Type Required Description

<SVM_NAME> (svmName)

Path

Yes

Identifies the SVM

workingEnvironmentId <WORKING_ENV_ID>

Path

Yes

Identifies the working environment ID

<VOLUME_NAME> (volumeName)

Path

Yes

Identifies the volume

Output

None