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.

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.

2. Select the volume

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

3. Delete the volume

HTTP method Path

DELETE

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

curl example
curl --location --request DELETE '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>'
Input

Path parameters:

  • <WORKING_ENV_ID> (workingEnvironmentId)

  • <SVM_NAME> (svmName)

  • <VOLUME_NAME> (volumeName)

Output

None

Delete volume for high availability pair

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

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.

2. Select the volume

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

3. Delete the volume

HTTP method Path

DELETE

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

curl example
curl --location --request DELETE '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>'
Input

Path parameters:

  • <WORKING_ENV_ID> (workingEnvironmentId)

  • <SVM_NAME> (svmName)

  • <VOLUME_NAME> (volumeName)

Output

None