Delete a volume
You can use this workflow to delete a volume.
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 a REST API call to delete a volume.
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
DELETE |
/occm/api/onprem/volumes/{workingEnvironmentId}/{svmName}/{volumeName} |
curl --request DELETE \
--location "https://cloudmanager.cloud.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>"
The JSON input example includes the minimum list of parameters.
Parameter | Type | Required | Description |
---|---|---|---|
<SVM_NAME> |
Path |
Yes |
Identifies the SVM name |
|
Path |
Yes |
Identifies the working environment ID |
<AGGR_NAME> |
Path |
Yes |
Identifies the aggregate |
None