Skip to main content

Delete a volume

Contributors netapp-aoife

You can use this workflow to delete a volume.

Step 1. Select the system

Perform the workflow Get systems and choose the publicId and svmName values of the system 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 a REST API call to delete a volume.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

DELETE

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

Curl example
curl --request DELETE \
--location "https://api.bluexp.netapp.com/occm/api/onprem/volumes/<ONPREM_WORKING_ENV_ID>/<SVM_NAME>/<VOLUME_NAME>" \
--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 name

workingEnvironmentId <WORKING_ENV_ID>

Path

Yes

Identifies the system ID

<AGGR_NAME> (aggregateName)

Path

Yes

Identifies the aggregate

Output

None